public function TranslatorPluginInterface::checkTranslatable in Translation Management Tool 8
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.
1 method overrides TranslatorPluginInterface::checkTranslatable()
- TranslatorPluginBase::checkTranslatable in src/
TranslatorPluginBase.php - Check whether this service can handle a particular translation job.
File
- src/
TranslatorPluginInterface.php, line 37
Class
- TranslatorPluginInterface
- Interface for service plugin controllers.
Namespace
Drupal\tmgmtCode
public function checkTranslatable(TranslatorInterface $translator, JobInterface $job);