public function WizardPluginBase::validateView in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php \Drupal\views\Plugin\views\wizard\WizardPluginBase::validateView()
Implements Drupal\views\Plugin\views\wizard\WizardInterface::validate().
Instantiates the view from the form submission and validates its values.
Overrides WizardInterface::validateView
File
- core/
modules/ views/ src/ Plugin/ views/ wizard/ WizardPluginBase.php, line 1240 - Contains \Drupal\views\Plugin\views\wizard\WizardPluginBase.
Class
- WizardPluginBase
- Base class for Views wizard plugins.
Namespace
Drupal\views\Plugin\views\wizardCode
public function validateView(array $form, FormStateInterface $form_state) {
$view = $this
->instantiateView($form, $form_state);
$errors = $view
->getExecutable()
->validate();
if (empty($errors)) {
$this
->setValidatedView($form, $form_state, $view);
}
return $errors;
}