public function LocaleConfigSubscriber::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/src/LocaleConfigSubscriber.php \Drupal\locale\LocaleConfigSubscriber::__construct()
Constructs a LocaleConfigSubscriber.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\locale\LocaleConfigManager $locale_config_manager: The typed configuration manager.
File
- core/
modules/ locale/ src/ LocaleConfigSubscriber.php, line 58
Class
- LocaleConfigSubscriber
- Updates strings translation when configuration translations change.
Namespace
Drupal\localeCode
public function __construct(ConfigFactoryInterface $config_factory, LocaleConfigManager $locale_config_manager) {
$this->configFactory = $config_factory;
$this->localeConfigManager = $locale_config_manager;
}