public function BlockPluginInterface::form

Constructs the block configuration form.

This method allows base implementations to add a generic configuration form for extending block plugins.

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\BlockFormController::form()

\Drupal\block\BlockInterace::validate()

\Drupal\block\BlockInterace::submit()

1 method overrides BlockPluginInterface::form()
BlockBase::form in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Implements \Drupal\block\BlockPluginInterface::form().

File

drupal/core/modules/block/lib/Drupal/block/BlockPluginInterface.php, line 65
Contains \Drupal\block\BlockPluginInterface.

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\block

Code

public function form($form, &$form_state);