You are here

public function BulkNodeExport::executeMultiple in Node export 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to BulkNodeExport::executeMultiple()
BulkNodeExport::execute in src/Plugin/Action/BulkNodeExport.php
Executes the plugin.

File

src/Plugin/Action/BulkNodeExport.php, line 111

Class

BulkNodeExport
Update Fields.

Namespace

Drupal\node_export\Plugin\Action

Code

public function executeMultiple(array $entities) {
  $ids = [];
  foreach ($entities as $entity) {
    $ids[$entity
      ->id()] = $entity;
  }
  $this->tempStoreFactory
    ->get('node_export_ids')
    ->set($this->currentUser
    ->id(), $ids);
}