class EmptyBlockForm

Same name in other branches
  1. 8.9.x core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php \Drupal\block_test\PluginForm\EmptyBlockForm
  2. 10 core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php \Drupal\block_test\PluginForm\EmptyBlockForm
  3. 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

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\PluginForm
View 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
EmptyBlockForm::$plugin public property The plugin this form is for. Overrides PluginFormBase::$plugin
EmptyBlockForm::buildConfigurationForm public function Form constructor. Overrides PluginFormInterface::buildConfigurationForm
EmptyBlockForm::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm
PluginFormBase::setPlugin public function Sets the plugin for this object. Overrides PluginAwareInterface::setPlugin 1
PluginFormBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm 2

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.