public function StorageComparer::reset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()
Recalculates the differences.
Return value
\Drupal\Core\Config\StorageComparerInterface An object which implements the StorageComparerInterface.
Overrides StorageComparerInterface::reset
File
- core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 371 - Contains \Drupal\Core\Config\StorageComparer.
Class
- StorageComparer
- Defines a config storage comparer.
Namespace
Drupal\Core\ConfigCode
public function reset() {
$this->changelist = array(
StorageInterface::DEFAULT_COLLECTION => $this
->getEmptyChangelist(),
);
$this->sourceNames = $this->targetNames = array();
// Reset the static configuration data caches.
$this->sourceCacheStorage
->deleteAll();
$this->targetCacheStorage
->deleteAll();
return $this
->createChangelist();
}