views_preprocess_comment

views_preprocess_comment(&$variables) A theme preprocess function to automatically allow view-based node templates if called from a view. File core/modules/views/views.module, line 265 Primarily Drupal hooks and global API functions to manipulate views. Code function views_preprocess_comment(&$variables) { // The view data is added to the comment in // \Drupal\views\Plugin\views\row\EntityRow::preRender(). if (!empty($variables['comment']->view) && $variables['comment

views_preprocess_node

views_preprocess_node(&$variables) A theme preprocess function to automatically allow view-based node templates if called from a view. The 'modules/node.views.inc' file is a better place for this, but we haven't got a chance to load that file before Drupal builds the node portion of the theme registry. File core/modules/views/views.module, line 232 Primarily Drupal hooks and global API functions to manipulate views. Code function views_preprocess_node(&$variables) { // The 'view' at

views_pre_render_views_form_views_form

views_pre_render_views_form_views_form($element) Replaces views substitution placeholders. Parameters array $element: An associative array containing the properties of the element. Properties used: #substitutions, #children. Return value array The $element with prepared variables ready for #theme 'form' in views_form_views_form. File core/modules/views/views.module, line 606 Primarily Drupal hooks and global API functions to manipulate views. Code function views_pre_render_views_form_views_

views_query_views_alter

views_query_views_alter(AlterableInterface $query) Implements hook_query_TAG_alter(). This is the hook_query_alter() for queries tagged by Views and is used to add in substitutions from hook_views_query_substitutions(). File core/modules/views/views.module, line 655 Primarily Drupal hooks and global API functions to manipulate views. Code function views_query_views_alter(AlterableInterface $query) { $substitutions = $query->getMetaData('views_substitutions'); $tables = &$query->

views_set_current_view

&views_set_current_view($view = NULL) Set the current 'current view' that is being built/rendered so that it is easy for other modules or items in drupal_eval to identify Return value \Drupal\views\ViewExecutable File core/modules/views/views.module, line 485 Primarily Drupal hooks and global API functions to manipulate views. Code function &views_set_current_view($view = NULL) { static $cache = NULL; if (isset($view)) { $cache = $view; } return $cache; }

views_theme

views_theme($existing, $type, $theme, $path) Implements hook_theme(). Register views theming functions and those that are defined via views plugin definitions. File core/modules/views/views.module, line 84 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme($existing, $type, $theme, $path) { \Drupal::moduleHandler()->loadInclude('views', 'inc', 'views.theme'); // Some quasi clever array merging here. $base = array( 'file' => 'views.t

views_theme_suggestions_comment_alter

views_theme_suggestions_comment_alter(array &$suggestions, array $variables) Implements hook_theme_suggestions_HOOK_alter(). File core/modules/views/views.module, line 276 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme_suggestions_comment_alter(array &$suggestions, array $variables) { $comment = $variables['elements']['#comment']; if (!empty($comment->view) && $comment->view->storage->id()) { $suggestions[] =

views_theme_suggestions_container_alter

views_theme_suggestions_container_alter(array &$suggestions, array $variables) Implements hook_theme_suggestions_HOOK_alter(). File core/modules/views/views.module, line 289 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme_suggestions_container_alter(array &$suggestions, array $variables) { if (!empty($variables['element']['#type']) && $variables['element']['#type'] == 'more_link' && !empty($variables['element']['#view'])

views_theme_suggestions_node_alter

views_theme_suggestions_node_alter(array &$suggestions, array $variables) Implements hook_theme_suggestions_HOOK_alter(). File core/modules/views/views.module, line 251 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme_suggestions_node_alter(array &$suggestions, array $variables) { $node = $variables['elements']['#node']; if (!empty($node->view) && $node->view->storage->id()) { $suggestions[] = 'node__view__' . $

views_ui.module

Provide structure for the administrative interface to Views. File core/modules/views_ui/views_ui.module Functions Name Description views_ui_contextual_links_suppress Sets a static variable for controlling whether contextual links are rendered. views_ui_contextual_links_suppress_pop Decrements the views_ui_contextual_links_suppress() static variable. views_ui_contextual_links_suppress_push Increments the views_ui_contextual_links_suppress() static variable. views_ui_contextua