You are here

public function JobItem::isActive in Translation Management Tool 8

Checks whether the state of this transaction is 'active'.

Return value

bool TRUE if the state is 'active', FALSE otherwise.

Overrides JobItemInterface::isActive

3 calls to JobItem::isActive()
JobItem::abortTranslation in src/Entity/JobItem.php
Attempts to abort the translation job item.
JobItem::addTranslatedData in src/Entity/JobItem.php
Adds translated data to a job item.
JobItem::isAbortable in src/Entity/JobItem.php

File

src/Entity/JobItem.php, line 603

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function isActive() {
  return $this
    ->isState(static::STATE_ACTIVE);
}