You are here

public function ConfigImporter::reset in Drupal 8

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

Resets the storage comparer and processed list.

Return value

$this The ConfigImporter instance.

1 call to ConfigImporter::reset()
ConfigImporter::finish in core/lib/Drupal/Core/Config/ConfigImporter.php
Finishes the batch.

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 254

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

public function reset() {
  $this->storageComparer
    ->reset();

  // Empty all the lists.
  foreach ($this->storageComparer
    ->getAllCollectionNames() as $collection) {
    $this->processedConfiguration[$collection] = $this->storageComparer
      ->getEmptyChangelist();
  }
  $this->extensionChangelist = $this->processedExtensions = $this
    ->getEmptyExtensionsProcessedList();
  $this->validated = FALSE;
  $this->processedSystemTheme = FALSE;
  return $this;
}