diff core/modules/comment/src/Form/CommentAdminOverview.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/modules/comment/src/Form/CommentAdminOverview.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/comment/src/Form/CommentAdminOverview.php	Thu May 09 15:34:47 2019 +0100
@@ -215,21 +215,21 @@
             '#type' => 'link',
             '#title' => $commented_entity->label(),
             '#access' => $commented_entity->access('view'),
-            '#url' => $commented_entity->urlInfo(),
+            '#url' => $commented_entity->toUrl(),
           ],
         ],
         'changed' => $this->dateFormatter->format($comment->getChangedTimeAcrossTranslations(), 'short'),
       ];
-      $comment_uri_options = $comment->urlInfo()->getOptions() + ['query' => $destination];
+      $comment_uri_options = $comment->toUrl()->getOptions() + ['query' => $destination];
       $links = [];
       $links['edit'] = [
         'title' => $this->t('Edit'),
-        'url' => $comment->urlInfo('edit-form', $comment_uri_options),
+        'url' => $comment->toUrl('edit-form', $comment_uri_options),
       ];
       if ($this->moduleHandler->moduleExists('content_translation') && $this->moduleHandler->invoke('content_translation', 'translate_access', [$comment])->isAllowed()) {
         $links['translate'] = [
           'title' => $this->t('Translate'),
-          'url' => $comment->urlInfo('drupal:content-translation-overview', $comment_uri_options),
+          'url' => $comment->toUrl('drupal:content-translation-overview', $comment_uri_options),
         ];
       }
       $options[$comment->id()]['operations']['data'] = [