function views_new_view

Create an empty view to work with.

Return value

Drupal\views\Plugin\Core\Entity\View A fully formed, empty $view object. This object must be populated before it can be successfully saved.

1 call to views_new_view()
HandlerAllTest::testHandlers in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAllTest.php
Tests most of the handlers.

File

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

Code

function views_new_view() {
  return entity_create('view', array());
}