You are here

public function SyncCoreBatchCollection::addMultiple in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/SyncCoreBatchCollection.php \Drupal\cms_content_sync\SyncCoreBatchCollection::addMultiple()
  2. 2.0.x src/SyncCoreBatchCollection.php \Drupal\cms_content_sync\SyncCoreBatchCollection::addMultiple()

Parameters

array $items:

bool $prepend:

File

src/SyncCoreBatchCollection.php, line 74

Class

SyncCoreBatchCollection
Class SyncCoreBatchCollection.

Namespace

Drupal\cms_content_sync

Code

public function addMultiple($items, $prepend = false) {
  $this->operations = $prepend ? array_merge($items, $this->operations) : array_merge($this->operations, $items);
}