You are here

public function DeleteSupportTicket::executeMultiple in Support Ticketing System 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to DeleteSupportTicket::executeMultiple()
DeleteSupportTicket::execute in modules/support_ticket/src/Plugin/Action/DeleteSupportTicket.php
Executes the plugin.

File

modules/support_ticket/src/Plugin/Action/DeleteSupportTicket.php, line 79
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 executeMultiple(array $entities) {
  $info = [];

  /** @var \Drupal\support_ticket\SupportTicketInterface $support_ticket */
  foreach ($entities as $support_ticket) {
    $langcode = $support_ticket
      ->language()
      ->getId();
    $info[$support_ticket
      ->id()][$langcode] = $langcode;
  }
  $this->tempStore
    ->set($this->currentUser
    ->id(), $info);
}