projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
More updates to stop using dev or alpha or beta versions.
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
Tests
/
Core
/
Form
/
fixtures
/
form_base_test.inc
1
<?php
2
3
/**
4
* @file
5
* Functions in the global namespace for \Drupal\Tests\Core\Form\FormTestBase.
6
*/
7
8
/**
9
* Creates a test form.
10
*
11
* @return array
12
* The form array
13
*/
14
function test_form_id() {
15
$form['test'] = [
16
'#type' => 'textfield',
17
'#title' => 'Test',
18
];
19
$form['options'] = [
20
'#type' => 'radios',
21
'#options' => [
22
'foo' => 'foo',
23
'bar' => 'bar',
24
],
25
];
26
$form['value'] = [
27
'#type' => 'value',
28
'#value' => 'bananas',
29
];
30
$form['actions'] = [
31
'#type' => 'actions',
32
];
33
$form['actions']['submit'] = [
34
'#type' => 'submit',
35
'#value' => 'Submit',
36
];
37
return $form;
38
}