You are here

protected function StorageComparer::addChangelistCreate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::addChangelistCreate()

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.

1 call to StorageComparer::addChangelistCreate()
StorageComparer::createChangelist in core/lib/Drupal/Core/Config/StorageComparer.php

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 246
Contains \Drupal\Core\Config\StorageComparer.

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);
}