public function FileTranslator::checkTranslatable

Check whether this service can handle a particular translation job.

Parameters

TranslatorInterface $translator: The Translator entity that should handle the translation.

\Drupal\tmgmt\JobInterface $job: The Job entity that should be translated.

Return value

\Drupal\tmgmt\Translator\TranslatableResult The result of the translatable check.

Overrides TranslatorPluginBase::checkTranslatable

File

translators/tmgmt_file/src/Plugin/tmgmt/Translator/FileTranslator.php, line 26

Class

FileTranslator
File translator.

Namespace

Drupal\tmgmt_file\Plugin\tmgmt\Translator

Code

public function checkTranslatable(TranslatorInterface $translator, JobInterface $job) {

  // Anything can be exported.
  return TranslatableResult::yes();
}