You are here

public function SmartlingTranslator::checkTranslatable in TMGMT Translator Smartling 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::checkTranslatable()
  2. 8.2 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::checkTranslatable()
  3. 8.3 src/Plugin/tmgmt/Translator/SmartlingTranslator.php \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator::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

src/Plugin/tmgmt/Translator/SmartlingTranslator.php, line 121
Contains \Drupal\tmgmt_smartling\Plugin\tmgmt\Translator\SmartlingTranslator.

Class

SmartlingTranslator
Smartling translator plugin.

Namespace

Drupal\tmgmt_smartling\Plugin\tmgmt\Translator

Code

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

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