public function ExportReference::executeMultiple in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_export/src/Plugin/Action/ExportReference.php \Drupal\bibcite_export\Plugin\Action\ExportReference::executeMultiple()
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to ExportReference::executeMultiple()
- ExportReference::execute in modules/
bibcite_export/ src/ Plugin/ Action/ ExportReference.php - Executes the plugin.
File
- modules/
bibcite_export/ src/ Plugin/ Action/ ExportReference.php, line 81
Class
- ExportReference
- Export multiple references.
Namespace
Drupal\bibcite_export\Plugin\ActionCode
public function executeMultiple(array $entities) {
$info = [];
/** @var \Drupal\bibcite_entity\Entity\ReferenceInterface $entity */
foreach ($entities as $entity) {
$info[$entity
->id()] = $entity
->label();
}
$this->tempStore
->set($this->currentUser
->id(), $info);
}