diff -u b/core/modules/locale/lib/Drupal/locale/ParamConverter/LocaleAdminPathConfigEntityConverter.php b/core/modules/locale/lib/Drupal/locale/ParamConverter/LocaleAdminPathConfigEntityConverter.php --- b/core/modules/locale/lib/Drupal/locale/ParamConverter/LocaleAdminPathConfigEntityConverter.php +++ b/core/modules/locale/lib/Drupal/locale/ParamConverter/LocaleAdminPathConfigEntityConverter.php @@ -33,7 +33,7 @@ return $entity; } } - + /** * This converter applies only if the path is an admin path. * @@ -47,7 +47,7 @@ // As we only want to override EntityConverter for ConfigEntities, find // out whether the current entity is a ConfigEntity. $entity_type = substr($definition['type'], strlen('entity:')); - $info = entity_get_info($entity_type); + $info = $this->entityManager->getDefinition($entity_type); if (is_subclass_of($info['class'], '\Drupal\Core\Config\Entity\ConfigEntityInterface')) { // path_is_admin() needs the path without the leading slash. $path = ltrim($route->getPath(), '/');