public function UnassignTask::executeMultiple

1 call to UnassignTask::executeMultiple()
UnassignTask::execute in translators/tmgmt_local/src/Plugin/Action/UnassignTask.php

File

translators/tmgmt_local/src/Plugin/Action/UnassignTask.php, line 35

Class

UnassignTask
Redirects to a task assign form.

Namespace

Drupal\tmgmt_local\Plugin\Action

Code

public function executeMultiple(array $entities) {

  /** @var \Drupal\tmgmt_local\LocalTaskInterface $task */
  foreach ($entities as $task) {
    $task
      ->unassign();
    $task
      ->save();
  }
}