X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fsettings_tray%2Ftests%2Fmodules%2Fsettings_tray_test%2Fsrc%2FForm%2FSettingsTrayFormAnnotationIsClassBlockForm.php;fp=web%2Fcore%2Fmodules%2Fsettings_tray%2Ftests%2Fmodules%2Fsettings_tray_test%2Fsrc%2FForm%2FSettingsTrayFormAnnotationIsClassBlockForm.php;h=f0fae68c4f2fa9a3543d83152a3d66feb07b85f6;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php b/web/core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php new file mode 100644 index 000000000..f0fae68c4 --- /dev/null +++ b/web/core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php @@ -0,0 +1,44 @@ +plugin->buildConfigurationForm($form, $form_state); + + $form['some_setting'] = [ + '#type' => 'select', + '#title' => t('Some setting'), + '#options' => [ + 'a' => 'A', + 'b' => 'B', + ], + '#required' => TRUE, + ]; + + return $form; + } + + /** + * {@inheritdoc} + */ + public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {} + +}