public function installLanguageOverrides($langcode) { /** @var \Drupal\Core\Config\ConfigInstallerInterface $config_installer */
$config_installer = \Drupal::
service('config.installer'
);
$config_installer->
installCollectionDefaultConfig($this->
createConfigCollectionName($langcode));
} /**
* {@inheritdoc}
*/
public function createConfigObject($name,
$collection = StorageInterface::DEFAULT_COLLECTION
) { $langcode =
$this->
getLangcodeFromCollectionName($collection);
return $this->
getOverride($langcode,
$name);
} /**
* {@inheritdoc}
*/
public function addCollections(ConfigCollectionInfo
$collection_info) { foreach (\Drupal::
languageManager()->
getLanguages() as $language) { $collection_info->
addCollection($this->
createConfigCollectionName($language->
getId()),
$this);
} }