You are here

public function ConvertBundlesActionBase::executeMultiple in Convert Bundles 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

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

File

src/Plugin/Action/ConvertBundlesActionBase.php, line 112

Class

ConvertBundlesActionBase
Update Bundles.

Namespace

Drupal\convert_bundles\Plugin\Action

Code

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