LanguageConfigFactoryOverride::installLanguageOverrides

public LanguageConfigFactoryOverride::installLanguageOverrides($langcode)

Installs available language configuration overrides for a given langcode.

Parameters

string $langcode: Language code.

Overrides LanguageConfigFactoryOverrideInterface::installLanguageOverrides

File

core/modules/language/src/Config/LanguageConfigFactoryOverride.php, line 152

Class

LanguageConfigFactoryOverride
Provides language overrides for the configuration factory.

Namespace

Drupal\language\Config

Code

public function installLanguageOverrides($langcode) {
  /** @var \Drupal\Core\Config\ConfigInstallerInterface $config_installer */
  $config_installer = \Drupal::service('config.installer');
  $config_installer->installCollectionDefaultConfig($this->createConfigCollectionName($langcode));
}
doc_Drupal
2016-10-29 09:22:08
Comments
Leave a Comment

Please login to continue.