You are here

class Locale in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/validator/Constraints/Locale.php \Symfony\Component\Validator\Constraints\Locale
  2. 8.0 core/modules/locale/src/Locale.php \Drupal\locale\Locale
Same name and namespace in other branches
  1. 8 core/modules/locale/src/Locale.php \Drupal\locale\Locale

Static service container wrapper for locale.

Hierarchy

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/src/Tests/LocaleConfigSubscriberTest.php
Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.
LocaleConfigTranslationImportTest.php in core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
Contains \Drupal\locale\Tests\LocaleConfigTranslationImportTest.
3 string references to 'Locale'
Connection::createDatabase in core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Overrides \Drupal\Core\Database\Connection::createDatabase().
RegionalForm::buildForm in core/modules/system/src/Form/RegionalForm.php
Form constructor.
Request::setPhpDefaultLocale in vendor/symfony/http-foundation/Request.php
Sets the default PHP locale.

File

core/modules/locale/src/Locale.php, line 13
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_manager');
  }

}

Members

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