You are here

public function EntityDeleteBase::__construct in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Plugin/Action/EntityDeleteBase.php \Drupal\bibcite_entity\Plugin\Action\EntityDeleteBase::__construct()

Constructs a new EntityDeleteBase 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\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

Overrides PluginBase::__construct

File

modules/bibcite_entity/src/Plugin/Action/EntityDeleteBase.php, line 44

Class

EntityDeleteBase
Base entity delete action.

Namespace

Drupal\bibcite_entity\Plugin\Action

Code

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