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);
}
doc_Drupal
2016-10-29 09:44:37
Comments
Leave a Comment

Please login to continue.