public function LocaleConfigSubscriber::getLocaleConfigName

Get configuration name for this language.

It will be the same name with a prefix depending on language code: locale.config.LANGCODE.NAME

Parameters

string $name: The name of the config object.

\Drupal\Core\Language\Language $language: The language object.

Return value

string The localized config name.

1 call to LocaleConfigSubscriber::getLocaleConfigName()
LocaleConfigSubscriber::configLoad in drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigSubscriber.php
Override configuration values with localized data.

File

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

Class

LocaleConfigSubscriber
Locale Config helper

Namespace

Drupal\locale

Code

public function getLocaleConfigName($name, Language $language) {
  return 'locale.config.' . $language->langcode . '.' . $name;
}