Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestSelectForm.php
index 20242ec2ebd9716b00abbe0062147bab41278cef..a922d2a86f8886c50647f333825e334ba47ca2f2 100644 (file)
@@ -115,6 +115,14 @@ class FormTestSelectForm extends FormBase {
       '#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;
   }