public function 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.

array $form_state: An array containing the current state of the configuration form.

Return value

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

See also

\Drupal\block\BlockBase::form()

1 call to BlockBase::blockForm()
BlockBase::form in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Implements \Drupal\block\BlockPluginInterface::form().
11 methods override BlockBase::blockForm()
AggregatorCategoryBlock::blockForm in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php
Overrides \Drupal\block\BlockBase::blockForm().
AggregatorFeedBlock::blockForm in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php
Overrides \Drupal\block\BlockBase::blockForm().
BookNavigationBlock::blockForm in drupal/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php
Overrides \Drupal\block\BlockBase::blockForm()
CustomBlockBlock::blockForm in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php
Overrides \Drupal\block\BlockBase::blockForm().
ForumBlockBase::blockForm in drupal/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php
Overrides \Drupal\block\BlockBase::blockForm().

... See full list

File

drupal/core/modules/block/lib/Drupal/block/BlockBase.php, line 155
Contains \Drupal\block\BlockBase.

Class

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

Namespace

Drupal\block

Code

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