public function BlockBase::blockValidate

Adds block type-specific validation for the block form.

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

Parameters

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

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

See also

\Drupal\block\BlockBase::blockForm()

\Drupal\block\BlockBase::blockSubmit()

\Drupal\block\BlockBase::validate()

1 call to BlockBase::blockValidate()
BlockBase::validate in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Implements \Drupal\block\BlockPluginInterface::validate().

File

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

Class

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

Namespace

Drupal\block

Code

public function blockValidate($form, &$form_state) {
}