You are here

function views_create_view in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 5 views.module \views_create_view()

Creates a view from an array of values.

Return value

Drupal\views\ViewStorage A fully formed $view object with properties from the values passed in.

1 call to views_create_view()
WizardPluginBase::instantiate_view in lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
Instantiates a view object from form values.

File

./views.module, line 1468
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_create_view(array $values = array()) {
  return entity_create('view', $values);
}