You are here

public function AssignTask::executeMultiple in Translation Management Tool 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to AssignTask::executeMultiple()
AssignTask::execute in translators/tmgmt_local/src/Plugin/Action/AssignTask.php
Executes the plugin.

File

translators/tmgmt_local/src/Plugin/Action/AssignTask.php, line 75

Class

AssignTask
Redirects to a task assign form.

Namespace

Drupal\tmgmt_local\Plugin\Action

Code

public function executeMultiple(array $entities) {
  $info = [];

  /** @var \Drupal\tmgmt_local\LocalTaskInterface $task */
  foreach ($entities as $task) {
    $info[$task
      ->id()] = $task;
  }
  $this->tempStore
    ->set($this->currentUser
    ->id(), $info);
}