public function StorageComparer::getChangelist

public StorageComparer::getChangelist($op = NULL, $collection = StorageInterface::DEFAULT_COLLECTION)

Gets the list of differences to import.

Parameters

string $op: (optional) A change operation. Either delete, create or update. If supplied the returned list will be limited to this operation.

string $collection: (optional) The collection to get the changelist for. Defaults to the default collection.

Return value

array An array of config changes that are yet to be imported.

Overrides StorageComparerInterface::getChangelist

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function getChangelist($op = NULL, $collection = StorageInterface::DEFAULT_COLLECTION) {
  if ($op) {
    return $this->changelist[$collection][$op];
  }
  return $this->changelist[$collection];
}

© 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::getChangelist/8.1.x