function views_set_page_view

Set the current 'page view' that is being displayed so that it is easy for other modules or the theme to identify.

2 calls to views_set_page_view()
Page::execute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().
views_get_page_view in drupal/core/modules/views/views.module
Find out what, if any, page view is currently in use.

File

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

Code

function &views_set_page_view($view = NULL) {
  static $cache = NULL;
  if (isset($view)) {
    $cache = $view;
  }
  return $cache;
}