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__' . $node->view->storage->id(); if (!empty($node->view->current_display)) { $suggestions[] = 'node__view__' . $node->view->storage->id() . '__' . $node->view->current_display; } } }
Please login to continue.