LocaleConfigSubscriber::getSubscribedEvents

public static LocaleConfigSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)

LocaleConfigSubscriber::$localeConfigManager

The typed configuration manager. Type: \Drupal\locale\LocaleConfigManager File core/modules/locale/src/LocaleConfigSubscriber.php, line 47 Class LocaleConfigSubscriber Updates strings translation when configuration translations change. Namespace Drupal\locale Code protected $localeConfigManager;

LocaleConfigSubscriber::$configFactory

The configuration factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/modules/locale/src/LocaleConfigSubscriber.php, line 40 Class LocaleConfigSubscriber Updates strings translation when configuration translations change. Namespace Drupal\locale Code protected $configFactory;

LocaleConfigSubscriber

Updates strings translation when configuration translations change. This reacts to the updates of translated active configuration and configuration language overrides. When those updates involve configuration which was available as default configuration, we need to feed back changes to any item which was originally part of that configuration to the interface translation storage. Those updated translations are saved as customized, so further community translation updates will not undo user chang

LocaleConfigManager::__construct

public LocaleConfigManager::__construct(StorageInterface $config_storage, StringStorageInterface $locale_storage, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config, ConfigurableLanguageManagerInterface $language_manager, LocaleDefaultConfigStorage $default_config_storage, ConfigManagerInterface $config_manager) Creates a new typed configuration manager. Parameters \Drupal\Core\Config\StorageInterface $config_storage: The storage object to use for reading configu

LocaleConfigManager::updateConfigTranslations

public LocaleConfigManager::updateConfigTranslations(array $names, array $langcodes = array()) Updates all configuration translations for the names / languages provided. To be used when interface translation changes result in the need to update configuration translations to keep them in sync. Parameters array $names: Array of names of configuration objects to update. array $langcodes: (optional) Array of language codes to update. Defaults to all configurable languages. Return value int Total

LocaleConfigManager::saveTranslationOverride

protected LocaleConfigManager::saveTranslationOverride($name, $langcode, array $data) Saves translated configuration override. Parameters string $name: Configuration object name. string $langcode: Language code. array $data: Configuration data to be saved, that will be only the translated values. File core/modules/locale/src/LocaleConfigManager.php, line 255 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code protect

LocaleConfigManager::saveTranslationActive

protected LocaleConfigManager::saveTranslationActive($name, array $data) Saves translated configuration data. Parameters string $name: Configuration object name. array $data: Configuration data to be saved with translations merged in. File core/modules/locale/src/LocaleConfigManager.php, line 269 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code protected function saveTranslationActive($name, array $data) { $this

LocaleConfigManager::reset

public LocaleConfigManager::reset() Reset static cache of configuration string translations. Return value $this File core/modules/locale/src/LocaleConfigManager.php, line 420 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function reset() { $this->translations = array(); return $this; }

LocaleConfigManager::processTranslatableData

protected LocaleConfigManager::processTranslatableData($name, array $active, array $translatable, $langcode) Process the translatable data array with a given language. If the given language is translatable, will return the translated copy which will only contain strings that had translations. If the given language is English and is not translatable, will return a simplified array of the English source strings only. Parameters string $name: The configuration name. array $active: The active conf