You are here

public function DeleteMerciLineItem::__construct in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

Constructs a new DeleteNode 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 tempstore factory.

AccountInterface $current_user: Current user.

Overrides PluginBase::__construct

File

modules/merci_line_item/src/Plugin/Action/DeleteMerciLineItem.php, line 38

Class

DeleteMerciLineItem
Redirects to a node deletion form.

Namespace

Drupal\merci_line_item\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('merci_line_item_multiple_delete_confirm');
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}