public function DeleteFile::executeMultiple in Panopoly 8.2
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to DeleteFile::executeMultiple()
- DeleteFile::execute in modules/
panopoly/ panopoly_media/ src/ Plugin/ Action/ DeleteFile.php - Executes the plugin.
File
- modules/
panopoly/ panopoly_media/ src/ Plugin/ Action/ DeleteFile.php, line 73
Class
- DeleteFile
- Deletes a file.
Namespace
Drupal\panopoly_media\Plugin\ActionCode
public function executeMultiple(array $entities) {
$info = [];
/** @var \Drupal\file\FileInterface $file */
foreach ($entities as $file) {
$info[$file
->id()] = $file
->id();
}
$this->tempStore
->set($this->currentUser
->id(), $info);
}