function StorageComparer::getSourceStorage
Same name in other branches
- 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getSourceStorage()
- 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getSourceStorage()
- 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getSourceStorage()
Overrides StorageComparerInterface::getSourceStorage
1 call to StorageComparer::getSourceStorage()
- StorageComparer::getAndSortConfigData in core/
lib/ Drupal/ Core/ Config/ StorageComparer.php - Gets and sorts configuration data from the source and target storages.
File
-
core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 143
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];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.