Locale.php 497 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Drupal\locale;
  3. /**
  4. * Static service container wrapper for locale.
  5. */
  6. class Locale {
  7. /**
  8. * Returns the locale configuration manager service.
  9. *
  10. * Use the locale config manager service for creating locale-wrapped typed
  11. * configuration objects.
  12. *
  13. * @see \Drupal\Core\TypedData\TypedDataManager::create()
  14. *
  15. * @return \Drupal\locale\LocaleConfigManager
  16. */
  17. public static function config() {
  18. return \Drupal::service('locale.config_manager');
  19. }
  20. }