You are here

public function BlockPluginInterface::blockForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockPluginInterface.php \Drupal\Core\Block\BlockPluginInterface::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.

1 method overrides BlockPluginInterface::blockForm()
BlockBase::blockForm in core/lib/Drupal/Core/Block/BlockBase.php
Returns the configuration form elements specific to this block plugin.

File

core/lib/Drupal/Core/Block/BlockPluginInterface.php, line 108
Contains \Drupal\Core\Block\BlockPluginInterface.

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\Core\Block

Code

public function blockForm($form, FormStateInterface $form_state);