Creates a view from values that have already been validated.
array $form: The full wizard form array.
array $form_state: The current state of the wizard form.
Drupal\views\ViewExecutable The created view object.
Drupal\views\Plugin\views\wizard\WizardException
Overrides WizardInterface::createView
public function createView(array $form, array &$form_state) {
$view = $this
->retrieveValidatedView($form, $form_state);
if (empty($view)) {
throw new WizardException('Attempted to create a view with values that have not been validated.');
}
return $view;
}