diff --git a/core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php b/core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php index 9988f5e..8062426 100644 --- a/core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php +++ b/core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php @@ -20,20 +20,20 @@ class ConfigTranslationFormAccess extends ConfigTranslationOverviewAccess { * The route_match to check against. * @param \Drupal\Core\Session\AccountInterface $account * The account to check access for. - * @param string $target_langcode + * @param string $langcode * The language code of the target language. * * @return \Drupal\Core\Access\AccessResultInterface * The access result. */ - public function access(RouteMatchInterface $route_match, AccountInterface $account, $target_langcode = NULL) { + public function access(RouteMatchInterface $route_match, AccountInterface $account, $langcode = NULL) { $mapper = $this->getMapperFromRouteMatch($route_match); try { $source_langcode = $mapper->getLangcode(); $source_language = $this->languageManager->getLanguage($source_langcode); - $target_language = $this->languageManager->getLanguage($target_langcode); + $target_language = $this->languageManager->getLanguage($langcode); return $this->doCheckAccess($account, $mapper, $source_language, $target_language); }