diff --git a/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php b/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php index 237e89a..1227c96 100644 --- a/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php +++ b/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php @@ -65,6 +65,7 @@ public function __construct(ConfigMapperManagerInterface $config_mapper_manager, public function access(Route $route, AccountInterface $account) { /** @var \Drupal\config_translation\ConfigMapperInterface $mapper */ $mapper = $this->configMapperManager->createInstance($route->getDefault('plugin_id')); + $mapper->populateFromRequest(\Drupal::request()); $this->sourceLanguage = $this->languageManager->getLanguage($mapper->getLangcode()); // Allow access to the translation overview if the proper permission is diff --git a/core/modules/config_translation/src/ConfigNamesMapper.php b/core/modules/config_translation/src/ConfigNamesMapper.php index ca4e8d8..7e305b8 100644 --- a/core/modules/config_translation/src/ConfigNamesMapper.php +++ b/core/modules/config_translation/src/ConfigNamesMapper.php @@ -435,11 +435,11 @@ public function hasSchema() { */ public function hasTranslatable() { foreach ($this->getConfigNames() as $name) { - if (!$this->configMapperManager->hasTranslatable($name)) { - return FALSE; + if ($this->configMapperManager->hasTranslatable($name)) { + return TRUE; } } - return TRUE; + return FALSE; } /**