You are here

public function LocalTask::unassign in Translation Management Tool 8

Unassign translation task.

Overrides LocalTaskInterface::unassign

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 201

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function unassign() {

  // We also need to increment loop count when unassigning.
  $this
    ->incrementLoopCount(static::STATUS_UNASSIGNED, 0);
  $this
    ->set('tuid', 0);
  $this
    ->set('status', static::STATUS_UNASSIGNED);
}