StorageComparer::addChangelistDelete

protected StorageComparer::addChangelistDelete($collection)

Creates the delete changelist.

The list of deletes is sorted so that dependencies are deleted after configuration entities that depend on them. For example, fields should be deleted after field storages.

Parameters

string $collection: The storage collection to operate on.

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

protected function addChangelistDelete($collection) {
  $deletes = array_diff(array_reverse($this->targetNames[$collection]), $this->sourceNames[$collection]);
  $this->addChangeList($collection, 'delete', $deletes);
}
doc_Drupal
2016-10-29 09:44:37
Comments
Leave a Comment

Please login to continue.