diff --git a/core/modules/content_translation/src/Controller/ContentTranslationController.php b/core/modules/content_translation/src/Controller/ContentTranslationController.php index 6c62515..e4d786e 100644 --- a/core/modules/content_translation/src/Controller/ContentTranslationController.php +++ b/core/modules/content_translation/src/Controller/ContentTranslationController.php @@ -136,10 +136,7 @@ public function overview(Request $request, $entity_type_id = NULL) { // the entity form, otherwise if we are not dealing with the original // language we point the link to the translation form. if ($entity->access('update')) { - $links['edit'] = array( - 'url' => $entity->urlInfo('edit-form'), - 'language' => $language, - ); + $links['edit'] = $entity->urlInfo('edit-form')->toArray() + ['language' => $language]; } elseif (!$is_original && $handler->getTranslationAccess($entity, 'update')->isAllowed()) { $links['edit'] = $edit_url->toArray(); diff --git a/core/modules/search/src/Tests/SearchRankingTest.php b/core/modules/search/src/Tests/SearchRankingTest.php index d17d6c2..c3c1c25 100644 --- a/core/modules/search/src/Tests/SearchRankingTest.php +++ b/core/modules/search/src/Tests/SearchRankingTest.php @@ -218,7 +218,7 @@ public function testHTMLRankings() { foreach ($shuffled_tags as $tag) { switch ($tag) { case 'a': - $settings['body'] = array(array('value' => \Drupal::l('Drupal Rocks', 'view.frontpage.page_1'), 'format' => 'full_html')); + $settings['body'] = array(array('value' => \Drupal::l('Drupal Rocks', ''), 'format' => 'full_html')); break; case 'notag': $settings['body'] = array(array('value' => 'Drupal Rocks')); diff --git a/core/modules/user/src/Tests/UserAdminTest.php b/core/modules/user/src/Tests/UserAdminTest.php index 1bb5089..3b18295 100644 --- a/core/modules/user/src/Tests/UserAdminTest.php +++ b/core/modules/user/src/Tests/UserAdminTest.php @@ -52,7 +52,9 @@ function testUserAdmin() { $this->assertText($admin_user->getUsername(), 'Found Admin user on admin users page'); // Test for existence of edit link in table. - $link = \Drupal::l(t('Edit'), 'entity.user.edit_form', array('user' => $user_a->id()), array('query' => array('destination' => 'admin/people'))); + // @todo This cannot be converted to \Drupal::l() until + // https://www.drupal.org/node/2345725 is resolved. + $link = l(t('Edit'), "user/" . $user_a->id() . "/edit", array('query' => array('destination' => 'admin/people'))); $this->assertRaw($link, 'Found user A edit link on admin users page'); // Test exposed filter elements.