You are here

public function StorageComparer::reset in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()
  2. 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::reset()

File

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

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();
}