Returns a translator plugin UI instance.
string $plugin: Name of the translator plugin.
\Drupal\tmgmt\TranslatorPluginUiInterface Instance a translator plugin UI instance.
public function createUIInstance($plugin) {
if (!isset($this->ui[$plugin])) {
$definition = $this
->getDefinition($plugin);
$class = $definition['ui'];
$this->ui[$plugin] = new $class(array(), $plugin, $definition);
}
return $this->ui[$plugin];
}