class Locale

Same name in other branches
  1. 9 core/modules/locale/src/Locale.php \Drupal\locale\Locale
  2. 8.9.x core/modules/locale/src/Locale.php \Drupal\locale\Locale
  3. 10 core/modules/locale/src/Locale.php \Drupal\locale\Locale

Static service container wrapper for locale.

Hierarchy

Expanded class hierarchy of Locale

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().

... See full list

File

core/modules/locale/src/Locale.php, line 8

Namespace

Drupal\locale
View 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.