public function Translator::providesRemoteLanguageMappings

Determines if this translator supports remote language mappings.

Return value

bool In case translator does not explicitly state that it does not provide the mapping feature it will return TRUE.

Overrides TranslatorInterface::providesRemoteLanguageMappings

1 call to Translator::providesRemoteLanguageMappings()
Translator::mapToRemoteLanguage in src/Entity/Translator.php
Maps local language to remote language.

File

src/Entity/Translator.php, line 482

Class

Translator
Entity class for the tmgmt_translator entity.

Namespace

Drupal\tmgmt\Entity

Code

public function providesRemoteLanguageMappings() {
  $definition = \Drupal::service('plugin.manager.tmgmt.translator')
    ->getDefinition($this
    ->getPluginId());
  if (!isset($definition['map_remote_languages'])) {
    return TRUE;
  }
  return $definition['map_remote_languages'];
}