class Locale

Static service container wrapper for locale.

Hierarchy

Expanded class hierarchy of Locale

19 string references to 'Locale'
Connection::createDatabase in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Overrides \Drupal\Core\Database\Connection::createDatabase().
LocaleConfigTranslationTest::getInfo in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php
LocaleContentTest::getInfo in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleContentTest.php
LocaleExportTest::getInfo in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php
LocaleImportFunctionalTest::getInfo in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php

... See full list

File

drupal/core/modules/locale/lib/Drupal/locale/Locale.php, line 15
Contains \Drupal\locale\Locale.

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.typed');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Locale::config public static function Returns the locale configuration manager service.