Retrieves a validated view for a form submission.
array $form: The full wizard form array.
array $form_state: The current state of the wizard form.
bool $unset: Should the view be removed from the list of validated views.
Drupal\views_ui\ViewUI $view The validated view object.
protected function retrieveValidatedView(array $form, array &$form_state, $unset = TRUE) {
// @todo Figure out why all this hashing is done. Wouldn't it be easier to
// store a single entry and that's it?
$key = hash('sha256', serialize($form_state['values']));
$view = isset($this->validated_views[$key]) ? $this->validated_views[$key] : NULL;
if ($unset) {
unset($this->validated_views[$key]);
}
return $view;
}