You are here

protected function WizardPluginBase::setValidatedView in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php \Drupal\views\Plugin\views\wizard\WizardPluginBase::setValidatedView()

Stores a validated view from a form submission.

Parameters

array $form: The full wizard form array.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the wizard form.

\Drupal\views_ui\ViewUI $view: The validated view object.

1 call to WizardPluginBase::setValidatedView()
WizardPluginBase::validateView in core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
Implements Drupal\views\Plugin\views\wizard\WizardInterface::validate().

File

core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php, line 1273

Class

WizardPluginBase
Base class for Views wizard plugins.

Namespace

Drupal\views\Plugin\views\wizard

Code

protected function setValidatedView(array $form, FormStateInterface $form_state, ViewUI $view) {
  $key = hash('sha256', serialize($form_state
    ->getValues()));
  $this->validated_views[$key] = $view;
}