class SettingsTrayFormAnnotationIsClassBlockForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm
Hierarchy
- class \Drupal\Core\Plugin\PluginFormBase implements PluginAwareInterface, PluginFormInterface
- class \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm
Expanded class hierarchy of SettingsTrayFormAnnotationIsClassBlockForm
See also
\Drupal\settings_tray_test\Plugin\Block\SettingsTrayFormAnnotationIsClassBlock
File
- core/
modules/ settings_tray/ tests/ modules/ settings_tray_test/ src/ Form/ SettingsTrayFormAnnotationIsClassBlockForm.php, line 11
Namespace
Drupal\settings_tray_test\FormView source
class SettingsTrayFormAnnotationIsClassBlockForm extends PluginFormBase {
/**
* The block plugin.
*
* @var \Drupal\Core\Block\BlockPluginInterface
*/
protected $plugin;
/**
* {@inheritdoc}
*/
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;
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginFormBase:: |
public | function |
Sets the plugin for this object. Overrides PluginAwareInterface:: |
1 |
PluginFormBase:: |
public | function |
Form validation handler. Overrides PluginFormInterface:: |
2 |
SettingsTrayFormAnnotationIsClassBlockForm:: |
protected | property |
The block plugin. Overrides PluginFormBase:: |
|
SettingsTrayFormAnnotationIsClassBlockForm:: |
public | function |
Form constructor. Overrides PluginFormInterface:: |
|
SettingsTrayFormAnnotationIsClassBlockForm:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |