public function UnassignTask::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 UnassignTask::executeMultiple()
- UnassignTask::execute in translators/
tmgmt_local/ src/ Plugin/ Action/ UnassignTask.php - Executes the plugin.
File
- translators/
tmgmt_local/ src/ Plugin/ Action/ UnassignTask.php, line 35
Class
- UnassignTask
- Redirects to a task assign form.
Namespace
Drupal\tmgmt_local\Plugin\ActionCode
public function executeMultiple(array $entities) {
/** @var \Drupal\tmgmt_local\LocalTaskInterface $task */
foreach ($entities as $task) {
$task
->unassign();
$task
->save();
}
}