function CheckpointStorage::createCollection
Same name in other branches
- 10 core/lib/Drupal/Core/Config/Checkpoint/CheckpointStorage.php \Drupal\Core\Config\Checkpoint\CheckpointStorage::createCollection()
Overrides StorageInterface::createCollection
File
-
core/
lib/ Drupal/ Core/ Config/ Checkpoint/ CheckpointStorage.php, line 214
Class
- CheckpointStorage
- Provides a config storage that can make checkpoints.
Namespace
Drupal\Core\Config\CheckpointCode
public function createCollection($collection) {
$collection = new self($this->activeStorage
->createCollection($collection), $this->checkpoints, $this->keyValueFactory, $collection);
// \Drupal\Core\Config\Checkpoint\CheckpointStorage::$readFromCheckpoint is
// assigned by reference so that it is consistent across all collection
// objects created from the same initial object.
$collection->readFromCheckpoint =& $this->readFromCheckpoint;
return $collection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.