function StorageComparer::getTargetStorage
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getTargetStorage()
- 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getTargetStorage()
- 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getTargetStorage()
Overrides StorageComparerInterface::getTargetStorage
1 call to StorageComparer::getTargetStorage()
- 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 133
Class
- StorageComparer
- Defines a config storage comparer.
Namespace
Drupal\Core\ConfigCode
public function getTargetStorage($collection = StorageInterface::DEFAULT_COLLECTION) {
if (!isset($this->targetStorages[$collection])) {
if ($collection == StorageInterface::DEFAULT_COLLECTION) {
$this->targetStorages[$collection] = $this->targetStorage;
}
else {
$this->targetStorages[$collection] = $this->targetStorage
->createCollection($collection);
}
}
return $this->targetStorages[$collection];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.