You are here

public function DeleteFile::__construct in Panopoly 8.2

Constructs a new DeleteComment object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides PluginBase::__construct

File

modules/panopoly/panopoly_media/src/Plugin/Action/DeleteFile.php, line 51

Class

DeleteFile
Deletes a file.

Namespace

Drupal\panopoly_media\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
  $this->currentUser = $current_user;
  $this->tempStore = $temp_store_factory
    ->get('panopoly_media_file_multiple_delete_confirm');
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}