function StorageComparer::createChangelist

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::createChangelist()
  2. 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::createChangelist()
  3. 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::createChangelist()
1 call to StorageComparer::createChangelist()
StorageComparer::reset in core/lib/Drupal/Core/Config/StorageComparer.php
Recalculates the differences.

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function createChangelist() {
    foreach ($this->getAllCollectionNames() as $collection) {
        $this->changelist[$collection] = $this->getEmptyChangelist();
        $this->getAndSortConfigData($collection);
        $this->addChangelistCreate($collection);
        $this->addChangelistUpdate($collection);
        $this->addChangelistDelete($collection);
        // Only collections that support configuration entities can have renames.
        if ($collection == StorageInterface::DEFAULT_COLLECTION) {
            $this->addChangelistRename($collection);
        }
    }
    return $this;
}

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