public function Translator::getPlugin in Translation Management Tool 8
Returns the translator plugin of this translator.
Return value
\Drupal\tmgmt\TranslatorPluginInterface Returns the TranslatorPluginInterface.
Overrides TranslatorInterface::getPlugin
9 calls to Translator::getPlugin()
- Translator::calculateDependencies in src/
Entity/ Translator.php - Calculates dependencies and stores them in the dependency property.
- Translator::checkAvailable in src/
Entity/ Translator.php - Checks whether a translator is available.
- Translator::checkTranslatable in src/
Entity/ Translator.php - Check whether this translator can handle a particular translation job.
- Translator::getSetting in src/
Entity/ Translator.php - Retrieves a setting value from the translator settings.
- Translator::getSupportedLanguagePairs in src/
Entity/ Translator.php - Gets the supported language pairs for this translator.
File
- src/
Entity/ Translator.php, line 268
Class
- Translator
- Entity class for the tmgmt_translator entity.
Namespace
Drupal\tmgmt\EntityCode
public function getPlugin() {
return \Drupal::service('plugin.manager.tmgmt.translator')
->createInstance($this->plugin);
}