diff --git a/core/lib/Drupal/Core/Language/language.api.php b/core/lib/Drupal/Core/Language/language.api.php index 37b219e..33c1ce6 100644 --- a/core/lib/Drupal/Core/Language/language.api.php +++ b/core/lib/Drupal/Core/Language/language.api.php @@ -6,7 +6,6 @@ */ use Drupal\Core\Language\LanguageInterface; -use Drupal\Core\Url; /** * @defgroup i18n Internationalization @@ -170,7 +169,7 @@ * @param \Drupal\Core\Url $url * The URL the switch links will be relative to. */ -function hook_language_switch_links_alter(array &$links, $type, Url $url) { +function hook_language_switch_links_alter(array &$links, $type, \Drupal\Core\Url $url) { $language_interface = \Drupal::languageManager()->getCurrentLanguage(); if ($type == LanguageInterface::TYPE_CONTENT && isset($links[$language_interface->getId()])) {