class Locale in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/src/Locale.php \Drupal\locale\Locale
- 9 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
5 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 - UserMailNotifyTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserMailNotifyTest.php
8 string references to 'Locale'
- Connection::createDatabase in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Overrides \Drupal\Core\Database\Connection::createDatabase().
- MultilingualReviewPageTest::getAvailablePaths in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ MultilingualReviewPageTest.php - MultilingualReviewPageTest::getAvailablePaths in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ MultilingualReviewPageTest.php - NoMultilingualReviewPageTest::getAvailablePaths in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ NoMultilingualReviewPageTest.php - Gets the available upgrade paths.
- NoMultilingualReviewPageTest::getAvailablePaths in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ NoMultilingualReviewPageTest.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');
}
}