You are here

public function Job::getState in Translation Management Tool 8

Returns the state of the job. Can be one of the job state constants.

Return value

int The state of the job or NULL if it hasn't been set yet.

Overrides JobInterface::getState

2 calls to Job::getState()
Job::isState in src/Entity/Job.php
Checks whether the passed value matches the current state.
Job::setState in src/Entity/Job.php
Updates the state of the job.

File

src/Entity/Job.php, line 542

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getState() {
  return $this
    ->get('state')->value;
}