You are here

public function Job::isRejected in Translation Management Tool 8

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

Return value

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

Overrides JobInterface::isRejected

1 call to Job::isRejected()
Job::isSubmittable in src/Entity/Job.php
Checks whether a job is submittable.

File

src/Entity/Job.php, line 607

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function isRejected() {
  return $this
    ->isState(static::STATE_REJECTED);
}