public function TMGMTJob::isAbortable in Translation Management Tool 7
Checks whether a job is abortable.
Return value
boolean TRUE if the job can be aborted, FALSE otherwise.
1 call to TMGMTJob::isAbortable()
- TMGMTJob::abortTranslation in entity/
tmgmt.entity.job.inc - Attempts to abort the translation job. Already accepted jobs can not be aborted, submitted jobs only if supported by the translator plugin. Always use this method if you want to abort a translation job.
File
- entity/
tmgmt.entity.job.inc, line 513
Class
- TMGMTJob
- Entity class for the tmgmt_job entity.
Code
public function isAbortable() {
// Only non-submitted translation jobs can be aborted.
return $this
->isActive();
}