You are here

public function Job::isDeletable in Translation Management Tool 8

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 670

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

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