public function ExportNodes::executeMultiple in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/Plugin/Action/ExportNodes.php \Drupal\content_sync\Plugin\Action\ExportNodes::executeMultiple()
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to ExportNodes::executeMultiple()
- ExportNodes::execute in src/
Plugin/ Action/ ExportNodes.php - Executes the plugin.
File
- src/
Plugin/ Action/ ExportNodes.php, line 74
Class
- ExportNodes
- Redirects to a content sync form.
Namespace
Drupal\content_sync\Plugin\ActionCode
public function executeMultiple(array $entities) {
$info = [];
/** @var EntityInterface $entity */
foreach ($entities as $entity) {
$info[$entity
->uuid()] = [
'entity_type' => $entity
->getEntityTypeId(),
'entity_id' => $entity
->id(),
'entity_uuid' => $entity
->uuid(),
];
}
$this->tempStore
->set($this->currentUser
->id(), $info);
}