You are here

public function BlockBase::blockValidate in Zircon Profile 8

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

Overrides BlockPluginInterface::blockValidate

See also

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

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

1 call to BlockBase::blockValidate()
BlockBase::validateConfigurationForm in core/lib/Drupal/Core/Block/BlockBase.php
Most block plugins should not override this method. To add validation for a specific block type, override BlockBase::blockValidate().
1 method overrides BlockBase::blockValidate()
ViewsBlock::blockValidate in core/modules/views/src/Plugin/Block/ViewsBlock.php
Adds block type-specific validation for the block form.

File

core/lib/Drupal/Core/Block/BlockBase.php, line 214
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 blockValidate($form, FormStateInterface $form_state) {
}