function views_create_view

Creates a view from an array of values.

Return value

Drupal\views\Plugin\Core\Entity\View A fully formed $view object with properties from the values passed in.

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

File

drupal/core/modules/views/views.module, line 1380
Primarily Drupal hooks and global API functions to manipulate views.

Code

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