class Locale
Same name in other branches
- 9 core/modules/locale/src/Locale.php \Drupal\locale\Locale
- 10 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
4 files declare their use of Locale
- locale.bulk.inc in core/
modules/ locale/ locale.bulk.inc - Mass import-export and batch import functionality for Gettext .po files.
- locale.module in core/
modules/ locale/ locale.module - Enables the translation of the user interface to languages other than English.
- LocaleConfigSubscriberTest.php in core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberTest.php - LocaleConfigTranslationImportTest.php in core/
modules/ locale/ tests/ src/ Functional/ LocaleConfigTranslationImportTest.php
88 string references to 'Locale'
- BlockUiTest::testBlockPlacementIndicator in core/
modules/ block/ tests/ src/ Functional/ BlockUiTest.php - Tests the block placement indicator.
- CKEditor::getJSSettings in core/
modules/ ckeditor/ src/ Plugin/ Editor/ CKEditor.php - Returns JavaScript settings to be attached.
- CKEditorTest::testJSTranslation in core/
modules/ ckeditor/ tests/ src/ Kernel/ CKEditorTest.php - Tests that CKEditor plugins participate in JS translation.
- CommentAdminTest::testCommentedTranslationDeletion in core/
modules/ comment/ tests/ src/ Functional/ CommentAdminTest.php - Tests commented translation deletion admin view.
- ConfigurableLanguageManagerTest::setUp in core/
modules/ language/ tests/ src/ Functional/ ConfigurableLanguageManagerTest.php
File
-
core/
modules/ locale/ src/ Locale.php, line 8
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.
*
* @see \Drupal\Core\TypedData\TypedDataManager::create()
*
* @return \Drupal\locale\LocaleConfigManager
*/
public static function config() {
return \Drupal::service('locale.config_manager');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Locale::config | 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.