You are here

public function Job::isActive in Translation Management Tool 8

Returns whether the state of this job is 'active'.

Return value

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

Overrides JobInterface::isActive

3 calls to Job::isActive()
Job::isAbortable in src/Entity/Job.php
Checks whether a job is abortable.
Job::isDeletable in src/Entity/Job.php
Checks whether a job is deletable.
Job::preSave in src/Entity/Job.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Job.php, line 600

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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