You are here

function views_get_page_view in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 views.module \views_get_page_view()
  2. 6.2 views.module \views_get_page_view()
  3. 7.3 views.module \views_get_page_view()

Find out what, if any, page view is currently in use. Please note that this returns a reference, so be careful! You can unintentionally modify the $view object.

Return value

Drupal\views\ViewExecutable A fully formed, empty $view object.

3 calls to views_get_page_view()
Tid::get_argument in lib/Views/taxonomy/Plugin/views/argument_default/Tid.php
Return the default argument.
User::get_argument in lib/Views/user/Plugin/views/argument_default/User.php
Return the default argument.
views_page_alter in ./views.module
Implements hook_page_alter().

File

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

Code

function &views_get_page_view() {
  return views_set_page_view();
}