protected function 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\ConfigCode
protected function addChangelistDelete($collection) { $deletes = array_diff(array_reverse($this->targetNames[$collection]), $this->sourceNames[$collection]); $this->addChangeList($collection, 'delete', $deletes); }
© 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::addChangelistDelete/8.1.x