You are here

public function LanguageConfigFactoryOverride::installLanguageOverrides in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::installLanguageOverrides()

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 157
Contains \Drupal\language\Config\LanguageConfigFactoryOverride.

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));
}