From 9b8dddd5a3aee02eb0c7982aff73cb9ff529cc94 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 9 Sep 2015 14:39:35 +0100 Subject: [PATCH] Issue #2556729 by karmazzin: Remove usage of deprecated UrlGeneratorInterface::generateFromPath() in CommentController::renderNewCommentsNodeLinks() --- core/modules/comment/src/Controller/CommentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php index e52e3b9f64cc..ef86d5dd5da5 100644 --- a/core/modules/comment/src/Controller/CommentController.php +++ b/core/modules/comment/src/Controller/CommentController.php @@ -339,7 +339,7 @@ public function renderNewCommentsNodeLinks(Request $request) { $query = $page_number ? array('page' => $page_number) : NULL; $links[$nid] = array( 'new_comment_count' => (int) $new, - 'first_new_comment_link' => $this->getUrlGenerator()->generateFromPath('node/' . $node->id(), array('query' => $query, 'fragment' => 'new')), + 'first_new_comment_link' => $this->getUrlGenerator()->generateFromRoute('entity.node.canonical', array('node' => $node->id()), array('query' => $query, 'fragment' => 'new')), ); } -- GitLab