LanguageConfigFactoryOverride::addCollections

public LanguageConfigFactoryOverride::addCollections(ConfigCollectionInfo $collection_info)

Reacts to the ConfigEvents::COLLECTION_INFO event.

Parameters

\Drupal\Core\Config\ConfigCollectionInfo $collection_info: The configuration collection info event.

Overrides ConfigFactoryOverrideBase::addCollections

File

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

Class

LanguageConfigFactoryOverride
Provides language overrides for the configuration factory.

Namespace

Drupal\language\Config

Code

public function addCollections(ConfigCollectionInfo $collection_info) {
  foreach (\Drupal::languageManager()->getLanguages() as $language) {
    $collection_info->addCollection($this->createConfigCollectionName($language->getId()), $this);
  }
}
doc_Drupal
2016-10-29 09:22:06
Comments
Leave a Comment

Please login to continue.