public function ViewsBlock::blockValidate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::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 BlockBase::blockValidate
See also
\Drupal\Core\Block\BlockPluginInterface::blockForm()
\Drupal\Core\Block\BlockPluginInterface::blockSubmit()
File
- core/
modules/ views/ src/ Plugin/ Block/ ViewsBlock.php, line 106 - Contains \Drupal\views\Plugin\Block\ViewsBlock.
Class
- ViewsBlock
- Provides a generic Views block.
Namespace
Drupal\views\Plugin\BlockCode
public function blockValidate($form, FormStateInterface $form_state) {
if ($this->displaySet) {
$this->view->display_handler
->blockValidate($this, $form, $form_state);
}
}