public function LocalTaskItem::isClosed in Translation Management Tool 8
Returns TRUE if the local task is closed (translated and accepted).
Return value
bool TRUE if the local task item is translated and accepted.
Overrides LocalTaskItemInterface::isClosed
1 call to LocalTaskItem::isClosed()
- 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 162
Class
- LocalTaskItem
- Entity class for the local task item entity.
Namespace
Drupal\tmgmt_local\EntityCode
public function isClosed() {
return $this
->get('status')->value == LocalTaskItemInterface::STATUS_CLOSED;
}