1 views_ui_base_views_wizard.php ViewsUiBaseViewsWizard::create_view($form, &$form_state)

Create a View from values that have been already submitted to validate().

Throws

ViewsWizardException if the values have not been validated.

Overrides ViewsWizardInterface::create_view

File

core/modules/views_ui/wizards/views_ui_base_views_wizard.php, line 939
Provides the interface and base class for Views Wizard plugins.

Class

ViewsUiBaseViewsWizard
A very generic Views Wizard class - can be constructed for any base table.

Code

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