class Locale
Same name in other branches
- 9 core/modules/locale/src/Locale.php \Drupal\locale\Locale
- 8.9.x core/modules/locale/src/Locale.php \Drupal\locale\Locale
- 11.x core/modules/locale/src/Locale.php \Drupal\locale\Locale
Static service container wrapper for locale.
Hierarchy
- class \Drupal\locale\Locale
Expanded class hierarchy of Locale
Deprecated
in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement.
See also
https://www.drupal.org/node/3437110
1 file declares its use of Locale
- LocaleTest.php in core/
modules/ locale/ tests/ src/ Unit/ LocaleTest.php
93 string references to 'Locale'
- BlockUiTest::testBlockPlacementIndicator in core/
modules/ block/ tests/ src/ Functional/ BlockUiTest.php - Tests the block placement indicator.
- CKEditor5::getJSSettings in core/
modules/ ckeditor5/ src/ Plugin/ Editor/ CKEditor5.php - Returns JavaScript settings to be attached.
- CKEditor5::getLibraries in core/
modules/ ckeditor5/ src/ Plugin/ Editor/ CKEditor5.php - Returns libraries to be attached.
- ckeditor5_js_alter in core/
modules/ ckeditor5/ ckeditor5.module - Implements hook_js_alter().
- ckeditor5_library_info_alter in core/
modules/ ckeditor5/ ckeditor5.module - Implements hook_library_info_alter().
File
-
core/
modules/ locale/ src/ Locale.php, line 15
Namespace
Drupal\localeView source
class Locale {
/**
* Returns the locale configuration manager service.
*
* Use the locale config manager service for creating locale-wrapped typed
* configuration objects.
*
* @return \Drupal\locale\LocaleConfigManager
* The locale configuration manager.
*
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0.
* Use \Drupal::service('locale.config_manager') instead.
*
* @see https://www.drupal.org/node/3437110
*/
public static function config() {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal::service(\'locale.config_manager\') instead. See https://www.drupal.org/node/3437110', E_USER_DEPRECATED);
return \Drupal::service('locale.config_manager');
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary |
---|---|---|---|---|
Locale::config | Deprecated | public static | function | Returns the locale configuration manager service. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.