protected function SplitCollectionStorage::getStorage in Configuration Split 2.0.x
Get the storage to interact with.
Return value
\Drupal\Core\Config\StorageInterface The config storage.
File
- src/
Config/ SplitCollectionStorage.php, line 159
Class
- SplitCollectionStorage
- A config storage that lives in a collection of another config storage.
Namespace
Drupal\config_split\ConfigCode
protected function getStorage() {
if (strpos($this->collection, static::PREFIX) !== FALSE) {
// Avoid recursion.
// This means this storage can not live inside another one of this type.
return new NullStorage();
}
return $this->storage;
}