class EmptyBlockForm
Same name and namespace in other branches
- 11.x 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 extends \Drupal\Core\Plugin\PluginFormInterface, \Drupal\Component\Plugin\PluginAwareInterface
- class \Drupal\block_test\PluginForm\EmptyBlockForm implements \Drupal\Core\Plugin\PluginFormBase
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.
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.