BlockBase::blockValidate

public BlockBase::blockValidate($form, FormStateInterface $form_state)

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()

File

core/lib/Drupal/Core/Block/BlockBase.php, line 212

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) {
}
doc_Drupal
2016-10-29 08:46:36
Comments
Leave a Comment

Please login to continue.