protected function StorageComparer::addChangelistCreate

protected StorageComparer::addChangelistCreate($collection)

Creates the create changelist.

The list of creates is sorted so that dependencies are created before configuration entities that depend on them. For example, field storages should be created before fields.

Parameters

string $collection: The storage collection to operate on.

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

protected function addChangelistCreate($collection) {
  $creates = array_diff($this->sourceNames[$collection], $this->targetNames[$collection]);
  $this->addChangeList($collection, 'create', $creates);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!StorageComparer.php/function/StorageComparer::addChangelistCreate/8.1.x