public function TranslatorPluginBase::abortTranslation

Aborts a translation job.

Parameters

\Drupal\tmgmt\JobInterface $job: The job that should have its translation aborted.

Return value

bool TRUE if the job could be aborted, FALSE otherwise.

Overrides TranslatorPluginInterface::abortTranslation

File

src/TranslatorPluginBase.php, line 54

Class

TranslatorPluginBase
Default controller class for service plugins.

Namespace

Drupal\tmgmt

Code

public function abortTranslation(JobInterface $job) {

  // Assume that we can abort a translation job at any time.
  $job
    ->aborted();
  return TRUE;
}