function SettingsTrayFormAnnotationIsClassBlockForm::buildConfigurationForm
Same name in other branches
- 9 core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm::buildConfigurationForm()
- 8.9.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm::buildConfigurationForm()
- 11.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm::buildConfigurationForm()
Overrides PluginFormInterface::buildConfigurationForm
File
-
core/
modules/ settings_tray/ tests/ modules/ settings_tray_test/ src/ Form/ SettingsTrayFormAnnotationIsClassBlockForm.php, line 23
Class
Namespace
Drupal\settings_tray_test\FormCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = $this->plugin
->buildConfigurationForm($form, $form_state);
$form['some_setting'] = [
'#type' => 'select',
'#title' => t('Some setting'),
'#options' => [
'a' => 'A',
'b' => 'B',
],
'#required' => TRUE,
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.