Mercurial > hg > isophonics-drupal-site
diff core/modules/comment/src/CommentLinkBuilder.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/comment/src/CommentLinkBuilder.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/comment/src/CommentLinkBuilder.php Thu Feb 28 13:21:36 2019 +0000 @@ -107,7 +107,7 @@ 'title' => $this->formatPlural($entity->get($field_name)->comment_count, '1 comment', '@count comments'), 'attributes' => ['title' => $this->t('Jump to the first comment.')], 'fragment' => 'comments', - 'url' => $entity->urlInfo(), + 'url' => $entity->toUrl(), ]; if ($this->moduleHandler->moduleExists('history')) { $links['comment-new-comments'] = [ @@ -141,7 +141,7 @@ ]); } else { - $links['comment-add'] += ['url' => $entity->urlInfo()]; + $links['comment-add'] += ['url' => $entity->toUrl()]; } } elseif ($this->currentUser->isAnonymous()) { @@ -174,7 +174,7 @@ ]); } else { - $links['comment-add']['url'] = $entity->urlInfo(); + $links['comment-add']['url'] = $entity->toUrl(); } } }