You are here

public function DeleteSupportTicket::__construct in Support Ticketing System 8

Constructs a new DeleteSupportTicket 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/support_ticket/src/Plugin/Action/DeleteSupportTicket.php, line 56
Contains \Drupal\support_ticket\Plugin\Action\DeleteSupportTicket.

Class

DeleteSupportTicket
Redirects to a support ticket deletion form.

Namespace

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