public function LocaleConfigSubscriber::configLoad

Override configuration values with localized data.

Parameters

Drupal\Core\Config\ConfigEvent $event: The Event to process.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php, line 27
Definition of Drupal\locale\LocaleConfigSubscriber.

Class

LocaleConfigSubscriber
Locale Config helper

Namespace

Drupal\locale

Code

public function configLoad(ConfigEvent $event) {
  $config = $event
    ->getConfig();
  $language = language(LANGUAGE_TYPE_INTERFACE);
  $locale_name = $this
    ->getLocaleConfigName($config
    ->getName(), $language);
  if ($override = $config
    ->getStorage()
    ->read($locale_name)) {
    $config
      ->setOverride($override);
  }
}