public function LocalTaskItem::isClosed

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

File

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

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

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