You are here

class EmptyBlockForm in Drupal 10

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

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

Namesort descending Modifiers Type Description 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