EmptyBlockForm.php

Same filename and directory in other branches
  1. 9 core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php
  2. 8.9.x core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php
  3. 10 core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php

Namespace

Drupal\block_test\PluginForm

File

core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.php

View source
<?php

declare (strict_types=1);
namespace Drupal\block_test\PluginForm;

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginFormBase;

/**
 * Provides a form for a block that is empty.
 */
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.
  }

}

Classes

Title Deprecated Summary
EmptyBlockForm Provides a form for a block that is empty.

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