function Locale::config
Same name in other branches
- 8.9.x core/modules/locale/src/Locale.php \Drupal\locale\Locale::config()
- 10 core/modules/locale/src/Locale.php \Drupal\locale\Locale::config()
- 11.x core/modules/locale/src/Locale.php \Drupal\locale\Locale::config()
Returns the locale configuration manager service.
Use the locale config manager service for creating locale-wrapped typed configuration objects.
Return value
\Drupal\locale\LocaleConfigManager
See also
\Drupal\Core\TypedData\TypedDataManager::create()
File
-
core/
modules/ locale/ src/ Locale.php, line 20
Class
- Locale
- Static service container wrapper for locale.
Namespace
Drupal\localeCode
public static function config() {
return \Drupal::service('locale.config_manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.