Mercurial > hg > isophonics-drupal-site
comparison core/modules/locale/src/Locale.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\locale; | |
4 | |
5 /** | |
6 * Static service container wrapper for locale. | |
7 */ | |
8 class Locale { | |
9 | |
10 /** | |
11 * Returns the locale configuration manager service. | |
12 * | |
13 * Use the locale config manager service for creating locale-wrapped typed | |
14 * configuration objects. | |
15 * | |
16 * @see \Drupal\Core\TypedData\TypedDataManager::create() | |
17 * | |
18 * @return \Drupal\locale\LocaleConfigManager | |
19 */ | |
20 public static function config() { | |
21 return \Drupal::service('locale.config_manager'); | |
22 } | |
23 | |
24 } |