function StorageComparer::reset

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()
  2. 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()
  3. 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()

Overrides StorageComparerInterface::reset

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 363

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function reset() {
    $this->changelist = [
        StorageInterface::DEFAULT_COLLECTION => $this->getEmptyChangelist(),
    ];
    $this->sourceNames = $this->targetNames = [];
    // Reset the static configuration data caches.
    $this->sourceCacheStorage
        ->deleteAll();
    $this->targetCacheStorage
        ->deleteAll();
    return $this->createChangelist();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.