public function StorageComparer::getSourceStorage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getSourceStorage()
- 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getSourceStorage()
File
- core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 111
Class
- StorageComparer
- Defines a config storage comparer.
Namespace
Drupal\Core\ConfigCode
public function getSourceStorage($collection = StorageInterface::DEFAULT_COLLECTION) {
if (!isset($this->sourceStorages[$collection])) {
if ($collection == StorageInterface::DEFAULT_COLLECTION) {
$this->sourceStorages[$collection] = $this->sourceStorage;
}
else {
$this->sourceStorages[$collection] = $this->sourceStorage
->createCollection($collection);
}
}
return $this->sourceStorages[$collection];
}