diff -u b/core/lib/Drupal/Core/Entity/EntityForm.php b/core/lib/Drupal/Core/Entity/EntityForm.php --- b/core/lib/Drupal/Core/Entity/EntityForm.php +++ b/core/lib/Drupal/Core/Entity/EntityForm.php @@ -226,7 +226,7 @@ 'class' => array('button', 'button--danger'), ), ); - $actions['delete'] += $route_info->toRenderArray(); + $actions['delete'] += $route_info->toRenderArrayFragment(); } return $actions; @@ -234,7 +234,7 @@ 'class' => array('button', 'button--danger'), ), ); - $actions['delete'] += $route_info->toRenderArrayFragment(''); + $actions['delete'] += $route_info->toRenderArray(); } return $actions; diff -u b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php --- b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php +++ b/core/lib/Drupal/Core/Form/ConfirmFormHelper.php @@ -43,7 +43,7 @@ } // Check for a route-based cancel link. elseif ($url = $form->getCancelUrl()) { - $link = $url->toRenderArray(); + return $url->toRenderArrayFragment($form->getCancelText()); } } diff -u b/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php --- b/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -377,7 +377,7 @@ * @return array * An associative array suitable for a render array. */ - public function toRenderArrayFragment($title) { + public function toRenderArrayFragment($title = '') { if ($this->isExternal()) { return array( '#type' => 'link', reverted: --- b/core/modules/node/src/Form/NodeDeleteForm.php +++ a/core/modules/node/src/Form/NodeDeleteForm.php @@ -58,11 +58,7 @@ /** * {@inheritdoc} */ -<<<<<<< HEAD:core/modules/node/src/Form/NodeDeleteForm.php public function getCancelUrl() { -======= - public function getCancelRoute() { ->>>>>>> apply coreurl:core/modules/node/lib/Drupal/node/Form/NodeDeleteForm.php return $this->entity->urlInfo(); } reverted: --- b/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php +++ a/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php @@ -30,7 +30,7 @@ ->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']); } only in patch2: unchanged: --- a/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php +++ b/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php @@ -113,7 +113,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta $link = array( '#type' => 'link', '#title' => $this->menuLink->getTitle(), - ) + $this->menuLink->getUrlObject()->toRenderArray(); + ) + $this->menuLink->getUrlObject()->toRenderArrayFragment(); $form['path'] = array( 'link' => $link, '#type' => 'item',