public function DeleteMultiple::__construct in Media entity 8
Constructs a DeleteMultiple form object.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory|\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity manager.
File
- src/
Form/ DeleteMultiple.php, line 49
Class
- DeleteMultiple
- Provides a media deletion confirmation form.
Namespace
Drupal\media_entity\FormCode
public function __construct($temp_store_factory, EntityTypeManagerInterface $manager) {
$this->tempStoreFactory = $temp_store_factory;
$this->storage = $manager
->getStorage('media');
}