function LocaleConfigManager::isSupported
Same name in other branches
- 9 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isSupported()
- 8.9.x core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isSupported()
- 11.x core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isSupported()
Whether the given configuration is supported for interface translation.
Parameters
string $name: The configuration name.
Return value
bool TRUE if interface translation is supported.
1 call to LocaleConfigManager::isSupported()
- LocaleConfigManager::getTranslatableDefaultConfig in core/
modules/ locale/ src/ LocaleConfigManager.php - Gets array of translated strings for Locale translatable configuration.
File
-
core/
modules/ locale/ src/ LocaleConfigManager.php, line 530
Class
- LocaleConfigManager
- Manages configuration supported in part by interface translation.
Namespace
Drupal\localeCode
public function isSupported($name) {
return $this->getDefaultConfigLangcode($name) == 'en' && $this->configStorage
->read($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.