function WizardPluginBase::create_view

Implements Drupal\views\Plugin\views\wizard\WizardInterface::create_view().

Overrides WizardInterface::create_view

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php, line 1157
Definition of Drupal\views\Plugin\views\wizard\WizardPluginBase.

Class

WizardPluginBase
Provides the interface and base class for Views Wizard plugins.

Namespace

Drupal\views\Plugin\views\wizard

Code

function create_view(array $form, array &$form_state) {
  $view = $this
    ->retrieve_validated_view($form, $form_state);
  if (empty($view)) {
    throw new WizardException('Attempted to create_view with values that have not been validated.');
  }
  return $view;
}