public function Job::isActive

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

File

src/Entity/Job.php, line 606

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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