class EmptyBlockForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php \Drupal\block_test\PluginForm\EmptyBlockForm
- 9 core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php \Drupal\block_test\PluginForm\EmptyBlockForm
Provides a form for a block that is empty.
Hierarchy
- class \Drupal\Core\Plugin\PluginFormBase implements PluginAwareInterface, PluginFormInterface
- class \Drupal\block_test\PluginForm\EmptyBlockForm
Expanded class hierarchy of EmptyBlockForm
1 file declares its use of EmptyBlockForm
- MultipleBlockFormTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Block/ MultipleBlockFormTest.php
File
- core/
modules/ block/ tests/ modules/ block_test/ src/ PluginForm/ EmptyBlockForm.php, line 11
Namespace
Drupal\block_test\PluginFormView source
class EmptyBlockForm extends PluginFormBase {
/**
* {@inheritdoc}
*/
public $plugin;
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return $form;
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// Intentionally empty.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmptyBlockForm:: |
public | property |
The plugin this form is for. Overrides PluginFormBase:: |
|
EmptyBlockForm:: |
public | function |
Form constructor. Overrides PluginFormInterface:: |
|
EmptyBlockForm:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |
|
PluginFormBase:: |
public | function |
Sets the plugin for this object. Overrides PluginAwareInterface:: |
1 |
PluginFormBase:: |
public | function |
Form validation handler. Overrides PluginFormInterface:: |
2 |