You are here

public function ContentStorageComparer::createChangelistbyCollection in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Content/ContentStorageComparer.php \Drupal\content_sync\Content\ContentStorageComparer::createChangelistbyCollection()

File

src/Content/ContentStorageComparer.php, line 17

Class

ContentStorageComparer
Extends config storage comparer.

Namespace

Drupal\content_sync\Content

Code

public function createChangelistbyCollection($collection) {
  $this->changelist[$collection] = $this
    ->getEmptyChangelist();
  $this
    ->getAndSortConfigData($collection);
  $this
    ->addChangelistCreate($collection);
  $this
    ->addChangelistUpdate($collection);
  $this
    ->addChangelistDelete($collection);

  // Only collections that support configuration entities can have renames.
  if ($collection == StorageInterface::DEFAULT_COLLECTION) {
    $this
      ->addChangelistRename($collection);
  }
  return $this;
}