$this->typedConfigManager =
$typed_config_manager;
$this->factory =
new ContainerFactory($this, '\Drupal\config_translation\ConfigMapperInterface'
);
// Let others alter definitions with hook_config_translation_info_alter().
$this->moduleHandler =
$module_handler;
$this->themeHandler =
$theme_handler;
$this->
alterInfo('config_translation_info'
);
// Config translation only uses an info hook discovery, cache by language.
$cache_key = 'config_translation_info_plugins' . ':' .
$language_manager->
getCurrentLanguage()->
getId();
$this->
setCacheBackend($cache_backend,
$cache_key,
['config_translation_info_plugins'
]);
} /**
* {@inheritdoc}
*/
protected function getDiscovery() { if (!
isset($this->discovery
)) { // Look at all themes and modules.
// @todo If the list of installed modules and themes is changed, new
// definitions are not picked up immediately and obsolete definitions
// are not removed, because the list of search directories is only