LocaleConfigManager::isUpdatingTranslationsFromLocale

public LocaleConfigManager::isUpdatingTranslationsFromLocale() Indicates whether configuration translations are being updated from locale. Return value bool Whether or not configuration translations are currently being updated. If TRUE, LocaleConfigManager is in control of the process and the reference data is locale's storage. Changes made to active configuration and overrides in this case should not feed back to locale storage. On the other hand, when not updating from locale and configurati

LocaleConfigManager::isSupported

public LocaleConfigManager::isSupported($name) Whether the given configuration is supported for interface translation. Parameters string $name: The configuration name. Return value bool TRUE if interface translation is supported. File core/modules/locale/src/LocaleConfigManager.php, line 532 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function isSupported($name) { return $this->getDefaultConfigLa

LocaleConfigManager::hasTranslation

public LocaleConfigManager::hasTranslation($name, $langcode) Checks whether a language has configuration translation. Parameters string $name: Configuration name. string $langcode: A language code. Return value bool A boolean indicating if a language has configuration translations. File core/modules/locale/src/LocaleConfigManager.php, line 469 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function hasTr

LocaleConfigManager::getTranslatableDefaultConfig

public LocaleConfigManager::getTranslatableDefaultConfig($name) Gets array of translated strings for Locale translatable configuration. Parameters string $name: Configuration object name. Return value array Array of Locale translatable elements of the default configuration in $name. File core/modules/locale/src/LocaleConfigManager.php, line 139 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function getT

LocaleConfigManager::getTranslatableData

protected LocaleConfigManager::getTranslatableData(TypedDataInterface $element) Gets translatable configuration data for a typed configuration element. Parameters \Drupal\Core\TypedData\TypedDataInterface $element: Typed configuration element. Return value array|\Drupal\Core\StringTranslation\TranslatableMarkup A nested array matching the exact structure under $element with only the elements that are translatable wrapped into a TranslatableMarkup. If the provided $element is not traversable,

LocaleConfigManager::getStringTranslation

public LocaleConfigManager::getStringTranslation($name, $langcode, $source, $context) Get the translation object for the given source/context and language. Parameters string $name: Name of the configuration location. string $langcode: Language code to translate to. string $source: The source string, should be English. string $context: The string context. Return value \Drupal\locale\TranslationString|false The translation object if the string was not empty or FALSE otherwise. File core/modules

LocaleConfigManager::getStringNames

public LocaleConfigManager::getStringNames(array $lids) Gets configuration names associated with strings. Parameters array $lids: Array with string identifiers. Return value array Array of configuration object names. File core/modules/locale/src/LocaleConfigManager.php, line 324 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function getStringNames(array $lids) { $names = array(); $locations = $this-

LocaleConfigManager::getDefaultConfigLangcode

public LocaleConfigManager::getDefaultConfigLangcode($name) Returns the original language code for this shipped configuration. Parameters string $name: The configuration name. Return value null|string Language code of the default configuration for $name. If the default configuration data for $name did not contain a language code, it is assumed to be English. The return value is NULL if no such default configuration exists. File core/modules/locale/src/LocaleConfigManager.php, line 486 Clas

LocaleConfigManager::getComponentNames

public LocaleConfigManager::getComponentNames(array $components = array()) Gets configuration names associated with components. Parameters array $components: (optional) Array of component lists indexed by type. If not present or it is an empty array, it will update all components. Return value array Array of configuration object names. File core/modules/locale/src/LocaleConfigManager.php, line 299 Class LocaleConfigManager Manages configuration supported in part by interface translation.

LocaleConfigManager::getActiveConfigLangcode

public LocaleConfigManager::getActiveConfigLangcode($name) Returns the current language code for this active configuration. Parameters string $name: The configuration name. Return value null|string Language code of the current active configuration for $name. If the configuration data for $name did not contain a language code, it is assumed to be English. The return value is NULL if no such active configuration exists. File core/modules/locale/src/LocaleConfigManager.php, line 516 Class Lo