You are here

public function BlockBase::blockForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockBase.php \Drupal\Core\Block\BlockBase::blockForm()

Returns the configuration form elements specific to this block plugin.

Blocks that need to add form elements to the normal block configuration form should implement this method.

Parameters

array $form: The form definition array for the block configuration form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array $form The renderable form array representing the entire configuration form.

Overrides BlockPluginInterface::blockForm

1 call to BlockBase::blockForm()
BlockBase::buildConfigurationForm in core/lib/Drupal/Core/Block/BlockBase.php
Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.
11 methods override BlockBase::blockForm()
AggregatorFeedBlock::blockForm in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Returns the configuration form elements specific to this block plugin.
BlockContentBlock::blockForm in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Overrides \Drupal\Core\Block\BlockBase::blockForm().
BookNavigationBlock::blockForm in core/modules/book/src/Plugin/Block/BookNavigationBlock.php
Returns the configuration form elements specific to this block plugin.
Broken::blockForm in core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
Returns the configuration form elements specific to this block plugin.
ForumBlockBase::blockForm in core/modules/forum/src/Plugin/Block/ForumBlockBase.php
Returns the configuration form elements specific to this block plugin.

... See full list

File

core/lib/Drupal/Core/Block/BlockBase.php, line 192
Contains \Drupal\Core\Block\BlockBase.

Class

BlockBase
Defines a base block implementation that most blocks plugins will extend.

Namespace

Drupal\Core\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  return array();
}