diff --git a/core/modules/views/views.module b/core/modules/views/views.module index e0da079..3e61dc4 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -241,6 +241,7 @@ function views_preprocess_node(&$vars) { // @todo The comment above doesn't make any sense to me - it's saying the // attribute is added in *this* function? if (!empty($vars['node']->view) && $vars['node']->view->storage->id()) { + $vars['view'] = $vars['node']->view; // If a node is being rendered in a view, and the view does not have a path, // prevent drupal from accidentally setting the $page variable: if ($vars['page'] && $vars['view_mode'] == 'full' && !$vars['view']->display_handler->hasPath()) {