public function LocalTaskItem::completed

Sets the task item status to completed.

Overrides LocalTaskItemInterface::completed

File

translators/tmgmt_local/src/Entity/LocalTaskItem.php, line 169

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function completed() {
  $this
    ->set('status', LocalTaskItemInterface::STATUS_COMPLETED);
}