Commit 9b8dddd5 authored by alexpott's avatar alexpott

Issue #2556729 by karmazzin: Remove usage of deprecated...

Issue #2556729 by karmazzin: Remove usage of deprecated UrlGeneratorInterface::generateFromPath() in CommentController::renderNewCommentsNodeLinks()
parent a351a02a
......@@ -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')),
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment