public function DeleteMedia::__construct in Media Entity Actions 8
Same name and namespace in other branches
- 8.2 src/Plugin/Action/DeleteMedia.php \Drupal\media_entity_actions\Plugin\Action\DeleteMedia::__construct()
Constructs a new DeleteMedia object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The temp store factory.
\Drupal\Core\Session\AccountInterface $current_user: Current user.
Overrides PluginBase::__construct
File
- src/
Plugin/ Action/ DeleteMedia.php, line 51
Class
- DeleteMedia
- Redirects to a media item deletion form.
Namespace
Drupal\media_entity_actions\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
$this->tempStore = $temp_store_factory
->get('media_multiple_delete_confirm');
}