projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
system
/
tests
/
modules
/
form_test
/
src
/
Form
/
FormTestSelectForm.php
diff --git
a/web/core/modules/system/tests/modules/form_test/src/Form/FormTestSelectForm.php
b/web/core/modules/system/tests/modules/form_test/src/Form/FormTestSelectForm.php
index 20242ec2ebd9716b00abbe0062147bab41278cef..a922d2a86f8886c50647f333825e334ba47ca2f2 100644
(file)
--- a/
web/core/modules/system/tests/modules/form_test/src/Form/FormTestSelectForm.php
+++ b/
web/core/modules/system/tests/modules/form_test/src/Form/FormTestSelectForm.php
@@
-115,6
+115,14
@@
class FormTestSelectForm extends FormBase {
'#multiple' => TRUE,
];
'#multiple' => TRUE,
];
+ $form['opt_groups'] = [
+ '#type' => 'select',
+ '#options' => [
+ 'optgroup_one' => ['one' => 'one', 'two' => 'two', 'three' => 'three', 'four' => '<strong>four</strong>'],
+ 'optgroup_two' => ['five' => 'five', 'six' => 'six'],
+ ],
+ ];
+
$form['submit'] = ['#type' => 'submit', '#value' => 'Submit'];
return $form;
}
$form['submit'] = ['#type' => 'submit', '#value' => 'Submit'];
return $form;
}