function MediaDeleteMultipleConfirmForm::__construct
Constructs a MediaDeleteMultipleConfirmForm form object.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity type manager.
File
-
core/
modules/ media/ src/ Form/ MediaDeleteMultipleConfirmForm.php, line 55
Class
- MediaDeleteMultipleConfirmForm
- Provides a confirmation form to delete multiple media items at once.
Namespace
Drupal\media\FormCode
public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $manager) {
@trigger_error(__CLASS__ . ' is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. It is not used in Drupal core. As an internal API, it may also be removed in a minor release. If you are using it, copy the class and the related "entity.media.multiple_delete_confirm" route to your module.', E_USER_DEPRECATED);
$this->tempStoreFactory = $temp_store_factory;
$this->storage = $manager->getStorage('media');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.