public function SettableStorageComparer::setSourceStorage in Configuration Synchronizer 8.2
Sets the source storage used to discover configuration changes.
Parameters
\Drupal\Core\Config\StorageInterface $storage:
Return value
$this
File
- src/
Config/ SettableStorageComparer.php, line 22
Class
- SettableStorageComparer
- Defines a settable config storage comparer.
Namespace
Drupal\config_sync\ConfigCode
public function setSourceStorage(StorageInterface $storage) {
// Reset the static configuration data cache.
$this->sourceCacheStorage
->deleteAll();
$this->sourceNames = [];
$this->sourceStorage = new CachedStorage($storage, $this->sourceCacheStorage);
$this->changelist = [
StorageInterface::DEFAULT_COLLECTION => $this
->getEmptyChangelist(),
];
return $this;
}