public function FileDeleteMultiple::__construct in Panopoly 8.2
Constructs a DeleteMultiple form object.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Entity\EntityTypeManager $manager: The entity manager.
\Drupal\file\FileUsage\FileUsageInterface $file_usage: The file usage service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
- modules/
panopoly/ panopoly_media/ src/ Form/ FileDeleteMultiple.php, line 67
Class
- FileDeleteMultiple
- Provides a file deletion confirmation form.
Namespace
Drupal\panopoly_media\FormCode
public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManager $manager, FileUsageInterface $file_usage, MessengerInterface $messenger) {
$this->tempStoreFactory = $temp_store_factory;
$this->storage = $manager
->getStorage('file');
$this->fileUsage = $file_usage;
$this->messenger = $messenger;
}