You are here

function WizardPluginBase::create_view in Views (for Drupal 7) 8.3

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

Overrides WizardInterface::create_view

File

lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php, line 1080
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;
}