LanguageConfigFactoryOverride::getStorage

public LanguageConfigFactoryOverride::getStorage($langcode)

Returns the storage instance for a particular langcode.

Parameters

string $langcode: Language code.

Return value

\Drupal\Core\Config\StorageInterface The storage instance for a particular langcode.

Overrides LanguageConfigFactoryOverrideInterface::getStorage

File

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

Class

LanguageConfigFactoryOverride
Provides language overrides for the configuration factory.

Namespace

Drupal\language\Config

Code

public function getStorage($langcode) {
  if (!isset($this->storages[$langcode])) {
    $this->storages[$langcode] = $this->baseStorage->createCollection($this->createConfigCollectionName($langcode));
  }
  return $this->storages[$langcode];
}
doc_Drupal
2016-10-29 09:22:07
Comments
Leave a Comment

Please login to continue.