Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
Locale | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
config | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\locale\Locale. | |
*/ | |
namespace Drupal\locale; | |
/** | |
* 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_manager'); | |
} | |
} |