public function Job::isSubmittable

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 664

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();
  }
}