You are here

public function Job::isState in Translation Management Tool 8

Checks whether the passed value matches the current state.

Parameters

int $state: The value to check the current state against.

Return value

bool TRUE if the passed state matches the current state, FALSE otherwise.

Overrides JobInterface::isState

7 calls to Job::isState()
Job::isAborted in src/Entity/Job.php
Returns whether the state of this job is 'aborted'.
Job::isActive in src/Entity/Job.php
Returns whether the state of this job is 'active'.
Job::isContinuousActive in src/Entity/Job.php
Returns whether the state of this job is 'continuous'.
Job::isContinuousInactive in src/Entity/Job.php
Returns whether the state of this jon is 'continuous_inactive'.
Job::isFinished in src/Entity/Job.php
Returns whether the state of this job is 'finished'.

... See full list

File

src/Entity/Job.php, line 565

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function isState($state) {
  return $this
    ->getState() == $state;
}