public function PdfDownload::executeMultiple in Entity Print 8
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
File
- src/
Plugin/ Action/ PdfDownload.php, line 117
Class
- PdfDownload
- Downloads the PDF for an entity.
Namespace
Drupal\entity_print\Plugin\ActionCode
public function executeMultiple(array $entities) {
$this
->sendResponse(function () use ($entities) {
$this->pdfBuilder
->getMultipleEntitiesRenderedAsPdf($entities, $this
->getPdfEngine(), TRUE);
});
}