You are here

public function BlockPluginInterface::blockValidate 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::blockValidate()

Adds block type-specific validation for the block form.

Note that this method takes the form structure and form state for the full block configuration form as arguments, not just the elements defined in BlockPluginInterface::blockForm().

Parameters

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

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

See also

\Drupal\Core\Block\BlockPluginInterface::blockForm()

\Drupal\Core\Block\BlockPluginInterface::blockSubmit()

1 method overrides BlockPluginInterface::blockValidate()
BlockBase::blockValidate in core/lib/Drupal/Core/Block/BlockBase.php
Adds block type-specific validation for the block form.

File

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

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\Core\Block

Code

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