public function Job::isDeletable

Checks whether a job is deletable.

Return value

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

Overrides JobInterface::isDeletable

File

src/Entity/Job.php, line 676

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function isDeletable() {
  return !$this
    ->isActive();
}