class SettingsTrayFormAnnotationIsClassBlockForm
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
- 8.9.x core/modules/settings_tray/tests/modules/settings_tray_test/src/Form/SettingsTrayFormAnnotationIsClassBlockForm.php \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm
- 10 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 \Drupal\Core\Plugin\PluginFormInterface, \Drupal\Component\Plugin\PluginAwareInterface
- class \Drupal\settings_tray_test\Form\SettingsTrayFormAnnotationIsClassBlockForm extends \Drupal\Core\Plugin\PluginFormBase
Expanded class hierarchy of SettingsTrayFormAnnotationIsClassBlockForm
See also
\Drupal\settings_tray_test\Plugin\Block\SettingsTrayFormAnnotationIsClassBlock
1 file declares its use of SettingsTrayFormAnnotationIsClassBlockForm
- SettingsTrayFormAnnotationIsClassBlock.php in core/
modules/ settings_tray/ tests/ modules/ settings_tray_test/ src/ Plugin/ Block/ SettingsTrayFormAnnotationIsClassBlock.php
File
-
core/
modules/ settings_tray/ tests/ modules/ settings_tray_test/ src/ Form/ SettingsTrayFormAnnotationIsClassBlockForm.php, line 13
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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
PluginFormBase::setPlugin | public | function | Sets the plugin for this object. | Overrides PluginAwareInterface::setPlugin | 1 |
PluginFormBase::validateConfigurationForm | public | function | Form validation handler. | Overrides PluginFormInterface::validateConfigurationForm | 3 |
SettingsTrayFormAnnotationIsClassBlockForm::$plugin | protected | property | The block plugin. | Overrides PluginFormBase::$plugin | |
SettingsTrayFormAnnotationIsClassBlockForm::buildConfigurationForm | public | function | Form constructor. | Overrides PluginFormInterface::buildConfigurationForm | |
SettingsTrayFormAnnotationIsClassBlockForm::submitConfigurationForm | public | function | Form submission handler. | Overrides PluginFormInterface::submitConfigurationForm |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.