diff --git a/core/lib/Drupal/Core/Form/ConfirmFormHelper.php b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php
index 1b1fa30..fc4031e 100644
--- a/core/lib/Drupal/Core/Form/ConfirmFormHelper.php
+++ b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php
@@ -38,7 +38,9 @@ public static function buildCancelLink(ConfirmFormInterface $form, Request $requ
     // If a destination is specified, that serves as the cancel link.
     if ($query->has('destination')) {
       $options = UrlHelper::parse($query->get('destination'));
-      $link = array(
+      return array(
+        '#type' => 'link',
+        '#title' => $form->getCancelText(),
         '#href' => $options['path'],
         '#options' => $options,
       );
@@ -57,12 +59,8 @@ public static function buildCancelLink(ConfirmFormInterface $form, Request $requ
         $route = new Url($route['route_name'], $route['route_parameters'], $route['options']);
       }
 
-      $link = $route->toRenderArray();
+      return $route->toRenderArray($form->getCancelText());
     }
-
-    $link['#type'] = 'link';
-    $link['#title'] = $form->getCancelText();
-    return $link;
   }
 
 }
diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php
index b8fcdeb..a1c1360 100644
--- a/core/lib/Drupal/Core/Url.php
+++ b/core/lib/Drupal/Core/Url.php
@@ -372,18 +372,25 @@ public function toArray() {
   /**
    * Returns the route information for a render array.
    *
+   * @param string $title
+   *   The title for the render array.
+   *
    * @return array
    *   An associative array suitable for a render array.
    */
-  public function toRenderArray() {
+  public function toRenderArray($title) {
     if ($this->isExternal()) {
       return array(
+        '#type' => 'link',
+        '#title' => $title,
         '#href' => $this->getPath(),
         '#options' => $this->getOptions(),
       );
     }
     else {
       return array(
+        '#type' => 'link',
+        '#title' => $title,
         '#route_name' => $this->getRouteName(),
         '#route_parameters' => $this->getRouteParameters(),
         '#options' => $this->getOptions(),
diff --git a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php
index a4db950..fcbee98 100644
--- a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php
+++ b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php
@@ -197,18 +197,13 @@ public function buildForm(array $form, array &$form_state, $type = 'new') {
       $options[$comment->id()] = array(
         'title' => array('data' => array('#title' => $comment->getSubject() ?: $comment->id())),
         'subject' => array(
-          'data' => array(
-            '#type' => 'link',
-            '#title' => $comment->getSubject(),
-          ) + $comment_permalink->toRenderArray(),
+          'data' => $comment_permalink->toRenderArray($comment->getSubject()),
         ),
         'author' => drupal_render($username),
         'posted_in' => array(
-          'data' => array(
-            '#type' => 'link',
-            '#title' => $commented_entity->label(),
+          'data' => $commented_entity->urlInfo()->toRenderArray($commented_entity->label()) + array(
             '#access' => $commented_entity->access('view'),
-          ) + $commented_entity->urlInfo()->toRenderArray(),
+          ),
         ),
         'changed' => $this->date->format($comment->getChangedTime(), 'short'),
       );
diff --git a/core/modules/comment/lib/Drupal/comment/Form/DeleteForm.php b/core/modules/comment/lib/Drupal/comment/Form/DeleteForm.php
index b2687f1..415fb65 100644
--- a/core/modules/comment/lib/Drupal/comment/Form/DeleteForm.php
+++ b/core/modules/comment/lib/Drupal/comment/Form/DeleteForm.php
@@ -58,19 +58,8 @@ public function getQuestion() {
   /**
    * {@inheritdoc}
    */
-  protected function actions(array $form, array &$form_state) {
-    $actions = parent::actions($form, $form_state);
-
-    // @todo Convert to getCancelRoute() after http://drupal.org/node/1987778.
-    $actions['cancel'] += $this->commentManager->getParentEntityUri($this->entity)->toRenderArray();
-
-    return $actions;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
   public function getCancelRoute() {
+    return $this->commentManager->getParentEntityUri($this->entity);
   }
 
   /**
diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php
index 7cdac18..da62d46 100644
--- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php
+++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php
@@ -71,10 +71,7 @@ public function viewElements(FieldItemListInterface $items) {
         // If the link is to be displayed and the entity has a uri,
         // display a link.
         if ($this->getSetting('link') && $uri = $referenced_entity->urlInfo()) {
-          $elements[$delta] = array(
-            '#type' => 'link',
-            '#title' => $label,
-          ) + $uri->toRenderArray();
+          $elements[$delta] = $uri->toRenderArray($label);
         }
         else {
           $elements[$delta] = array('#markup' => check_plain($label));
diff --git a/core/modules/image/lib/Drupal/image/Form/ImageEffectFormBase.php b/core/modules/image/lib/Drupal/image/Form/ImageEffectFormBase.php
index d4ee29b..d1f3e63 100644
--- a/core/modules/image/lib/Drupal/image/Form/ImageEffectFormBase.php
+++ b/core/modules/image/lib/Drupal/image/Form/ImageEffectFormBase.php
@@ -91,10 +91,7 @@ public function buildForm(array $form, array &$form_state, ImageStyleInterface $
       '#type' => 'submit',
       '#button_type' => 'primary',
     );
-    $form['actions']['cancel'] = array(
-      '#type' => 'link',
-      '#title' => $this->t('Cancel'),
-    ) + $this->imageStyle->urlInfo('edit-form')->toRenderArray();
+    $form['actions']['cancel'] = $this->imageStyle->urlInfo('edit-form')->toRenderArray($this->t('Cancel'));
     return $form;
   }
 
diff --git a/core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php b/core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php
index 164ac5f..ebc34c9 100644
--- a/core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php
+++ b/core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php
@@ -58,19 +58,8 @@ public function getQuestion() {
   /**
    * {@inheritdoc}
    */
-  protected function actions(array $form, array &$form_state) {
-    $actions = parent::actions($form, $form_state);
-
-    // @todo Convert to getCancelRoute() after http://drupal.org/node/1987778.
-    $actions['cancel'] += $this->entity->urlInfo()->toRenderArray();
-
-    return $actions;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
   public function getCancelRoute() {
+    return $this->entity->urlInfo();
   }
 
   /**
diff --git a/core/modules/node/lib/Drupal/node/NodeListBuilder.php b/core/modules/node/lib/Drupal/node/NodeListBuilder.php
index 51b2485..554afde 100644
--- a/core/modules/node/lib/Drupal/node/NodeListBuilder.php
+++ b/core/modules/node/lib/Drupal/node/NodeListBuilder.php
@@ -101,11 +101,9 @@ public function buildRow(EntityInterface $entity) {
     $options = $uri->getOptions();
     $options += ($langcode != Language::LANGCODE_NOT_SPECIFIED && isset($languages[$langcode]) ? array('language' => $languages[$langcode]) : array());
     $uri->setOptions($options);
-    $row['title']['data'] = array(
-      '#type' => 'link',
-      '#title' => $entity->label(),
+    $row['title']['data'] = $uri->toRenderArray($entity->label()) + array(
       '#suffix' => ' ' . drupal_render($mark),
-    ) + $uri->toRenderArray();
+    );
     $row['type'] = String::checkPlain(node_get_type_label($entity));
     $row['author']['data'] = array(
       '#theme' => 'username',
diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/OverviewTerms.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/OverviewTerms.php
index 4ff067a..7893ff4 100644
--- a/core/modules/taxonomy/lib/Drupal/taxonomy/Form/OverviewTerms.php
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Form/OverviewTerms.php
@@ -208,11 +208,9 @@ public function buildForm(array $form, array &$form_state, VocabularyInterface $
           '#size' => $term->depth,
         );
       }
-      $form['terms'][$key]['term'] = array(
+      $form['terms'][$key]['term'] = $term->urlInfo()->toRenderArray($term->getName()) + array(
         '#prefix' => !empty($indentation) ? drupal_render($indentation) : '',
-        '#type' => 'link',
-        '#title' => $term->getName(),
-      ) + $term->urlInfo()->toRenderArray();
+      );
       if ($taxonomy_vocabulary->hierarchy != TAXONOMY_HIERARCHY_MULTIPLE && count($tree) > 1) {
         $parent_fields = TRUE;
         $form['terms'][$key]['term']['tid'] = array(
diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php
index eb0515c..328cb88 100644
--- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php
@@ -39,10 +39,7 @@ public function viewElements(FieldItemListInterface $items) {
       else {
         /** @var $term \Drupal\taxonomy\TermInterface */
         $term = $item->entity;
-        $elements[$delta] = array(
-          '#type' => 'link',
-          '#title' => $term->getName(),
-        ) + $term->urlInfo()->toRenderArray();
+        $elements[$delta] = $term->urlInfo()->toRenderArray($term->getName());
 
         if (!empty($item->_attributes)) {
           $elements[$delta]['#options'] += array('attributes' => array());
diff --git a/core/modules/user/lib/Drupal/user/Form/UserCancelForm.php b/core/modules/user/lib/Drupal/user/Form/UserCancelForm.php
index eb05ee1..c03128d 100644
--- a/core/modules/user/lib/Drupal/user/Form/UserCancelForm.php
+++ b/core/modules/user/lib/Drupal/user/Form/UserCancelForm.php
@@ -75,6 +75,7 @@ public function getQuestion() {
    * {@inheritdoc}
    */
   public function getCancelRoute() {
+    return $this->entity->urlInfo();
   }
 
   /**
@@ -141,11 +142,7 @@ public function buildForm(array $form, array &$form_state) {
     // Always provide entity id in the same form key as in the entity edit form.
     $form['uid'] = array('#type' => 'value', '#value' => $this->entity->id());
 
-    $form = parent::buildForm($form, $form_state);
-
-    // @todo Convert to getCancelRoute() after https://drupal.org/node/1987896.
-    $form['actions']['cancel'] += $this->entity->urlInfo()->toRenderArray();
-    return $form;
+    return parent::buildForm($form, $form_state);
   }
 
   /**
diff --git a/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php b/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php
index 5381bfb..5beada2 100644
--- a/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php
@@ -39,7 +39,7 @@ public function testCancelLinkTitle() {
       ->method('getCancelText')
       ->will($this->returnValue($cancel_text));
 
-    $link = ConfirmFormHelper::buildCancelLink($form, new Request());
+    $link = ConfirmFormHelper::buildCancelLink($form, new Request(array('destination' => 'foo')));
     $this->assertSame($cancel_text, $link['#title']);
   }
 
diff --git a/core/tests/Drupal/Tests/Core/UrlTest.php b/core/tests/Drupal/Tests/Core/UrlTest.php
index a2a7ec0..a154e33 100644
--- a/core/tests/Drupal/Tests/Core/UrlTest.php
+++ b/core/tests/Drupal/Tests/Core/UrlTest.php
@@ -309,14 +309,15 @@ public function testGetRouteParameters($urls) {
   }
 
   /**
-   * Tests the getRouteParameter() with an external URL.
+   * Tests the getRouteParameters() with an external URL.
+   *
+   * @covers ::getRouteParameters
    *
-   * @covers ::getRouteParameter
    * @expectedException \UnexpectedValueException
    */
   public function testGetRouteParametersWithExternalUrl() {
     $url = Url::createFromPath('http://example.com');
-    $url->getRouteParameters();
+    $this->assertNull($url->getRouteParameters());
   }
 
   /**
@@ -335,4 +336,43 @@ public function testGetOptions($urls) {
     }
   }
 
+  /**
+   * Tests the toRenderArray() method.
+   *
+   * @param \Drupal\Core\Url[] $urls
+   *   An array of Url objects.
+   *
+   * @depends testCreateFromPath
+   *
+   * @covers ::toRenderArray()
+   */
+  public function testToRenderArray($urls) {
+    foreach ($urls as $index => $url) {
+      $expected = array(
+        '#type' => 'link',
+        '#title' => 'foo',
+        '#route_name' => $this->map[$index][0],
+        '#route_parameters' => $this->map[$index][1],
+        '#options' => $this->map[$index][2],
+      );
+      $this->assertSame($expected, $url->toRenderArray('foo'));
+    }
+  }
+
+  /**
+   * Tests the toRenderArray() with an external URL.
+   *
+   * @covers ::toRenderArray
+   */
+  public function testToRenderArrayWithExternalUrl() {
+    $url = Url::createFromPath('http://example.com');
+    $expected = array(
+      '#type' => 'link',
+      '#title' => 'foo',
+      '#href' => 'http://example.com',
+      '#options' => array(),
+    );
+    $this->assertSame($expected, $url->toRenderArray('foo'));
+  }
+
 }
