public function LocaleConfigSubscriber::__construct

Constructs a LocaleConfigSubscriber object.

Parameters

\Drupal\Core\Language\LanguageManager $language_manager: The language manager service.

\Drupal\Core\Config\Context\ConfigContext $config_context: The configuration context service.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php, line 51
Contains \Drupal\locale\LocaleConfigSubscriber.

Class

LocaleConfigSubscriber
Locale Config helper

Namespace

Drupal\locale

Code

public function __construct(LanguageManager $language_manager, ContextInterface $config_context) {
  $this->languageManager = $language_manager;
  $this->defaultConfigContext = $config_context;
}