EmptyBlockForm.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\block_test\PluginFormFile
core/modules/block/tests/modules/block_test/src/PluginForm/EmptyBlockForm.phpView source
<?php
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 function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return $form;
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
// Intentionally empty.
}
}
Classes
Name![]() |
Description |
---|---|
EmptyBlockForm | Provides a form for a block that is empty. |