function ConfigImporter::reset

Same name 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()
  3. 11.x 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;
}

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