Locale.php

Contains \Drupal\locale\Locale.

Namespace

Drupal\locale

File

drupal/core/modules/locale/lib/Drupal/locale/Locale.php
View source
<?php

/**
 * @file
 * Contains \Drupal\locale\Locale.
 */
namespace Drupal\locale;

use Drupal;

/**
 * Static service container wrapper for locale.
 */
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');
  }

}

Classes

Namesort descending Description
Locale Static service container wrapper for locale.