You are here

public function LocalTaskItem::isCompleted in Translation Management Tool 8

Returns TRUE if the local task is translated (fully translated).

Return value

bool TRUE if the local task item is translated.

Overrides LocalTaskItemInterface::isCompleted

1 call to LocalTaskItem::isCompleted()
LocalTaskItem::recalculateStatistics in translators/tmgmt_local/src/Entity/LocalTaskItem.php
Recalculates statistical word-data: pending, completed, rejected, closed.

File

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

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function isCompleted() {
  return $this
    ->get('status')->value == LocalTaskItemInterface::STATUS_COMPLETED;
}