diff -u b/core/modules/path/lib/Drupal/path/Controller/PathController.php b/core/modules/path/lib/Drupal/path/Controller/PathController.php --- b/core/modules/path/lib/Drupal/path/Controller/PathController.php +++ b/core/modules/path/lib/Drupal/path/Controller/PathController.php @@ -121,7 +121,7 @@ 'attributes' => array('title' => $data->source), )); if ($multilanguage) { - $row['data']['language_name'] = language_name($data->langcode); + $row['data']['language_name'] = \Drupal::languageManager()->getLanguageName($data->langcode); } $operations = array(); diff -u b/core/modules/path/lib/Drupal/path/Form/EditForm.php b/core/modules/path/lib/Drupal/path/Form/EditForm.php --- b/core/modules/path/lib/Drupal/path/Form/EditForm.php +++ b/core/modules/path/lib/Drupal/path/Form/EditForm.php @@ -11,7 +11,7 @@ use Drupal\Core\Form\FormBase; use Drupal\Core\Language\Language; use Drupal\Core\Path\AliasManagerInterface; -use Drupal\Core\Path\Path; +use Drupal\Core\Path\PathInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -43,14 +43,14 @@ /** * Constructs an EditForm object. * - * @param \Drupal\Core\Path\Path $path + * @param \Drupal\Core\Path\PathInterface $path * The path crud service. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler service. * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager * The path alias manager service. */ - public function __construct(Path $path, ModuleHandlerInterface $module_handler, AliasManagerInterface $alias_manager) { + public function __construct(PathInterface $path, ModuleHandlerInterface $module_handler, AliasManagerInterface $alias_manager) { $this->path = $path; $this->moduleHandler = $module_handler; $this->aliasManager = $alias_manager;