From 99575b2bebc231d18384487c3a4653c84f3e1546 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Tue, 30 Jul 2013 06:08:25 -0700 Subject: [PATCH] Issue #2050883 by Cottser, tstoeckler, dawehner: Fix references to obsolete functions in code comments in views module --- core/modules/views/views.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 2165f678344..a70f4e4678f 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -238,7 +238,8 @@ function views_plugin_list() { */ function views_preprocess_node(&$variables) { Drupal::moduleHandler()->loadInclude('node', 'views.inc'); - // The 'view' attribute of the node is added in views_preprocess_node() + // The 'view' attribute of the node is added in + // \Drupal\views\Plugin\views\row\EntityRow::preRender(). if (!empty($variables['node']->view) && $variables['node']->view->storage->id()) { $variables['view'] = $variables['node']->view; $variables['theme_hook_suggestions'][] = 'node__view__' . $variables['node']->view->storage->id(); @@ -264,7 +265,8 @@ function views_preprocess_node(&$variables) { * templates if called from a view. */ function views_preprocess_comment(&$variables) { - // The 'view' attribute of the node is added in template_preprocess_views_view_row_comment() + // The view data is added to the comment in + // \Drupal\views\Plugin\views\row\EntityRow::preRender(). if (!empty($variables['comment']->view) && $variables['comment']->view->storage->id()) { $variables['view'] = &$variables['comment']->view; $variables['theme_hook_suggestions'][] = 'comment__view__' . $variables['comment']->view->storage->id();