You are here

public function Job::isSubmittable in Translation Management Tool 8

Checks whether a job is submittable.

Return value

bool TRUE if the job can be submitted, FALSE otherwise.

Overrides JobInterface::isSubmittable

File

src/Entity/Job.php, line 658

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function isSubmittable() {
  if ($this
    ->isContinuous()) {
    return FALSE;
  }
  else {
    return $this
      ->isUnprocessed() || $this
      ->isRejected();
  }
}