You are here

public function LanguageConfigFactoryOverride::installLanguageOverrides in Drupal 9

Same name and namespace in other branches
  1. 8 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 149

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