You are here

public function GlExchangeAdapter::getTranslator in GlobalLink Connect for Drupal 8.2

Same name and namespace in other branches
  1. 8 src/GlExchangeAdapter.php \Drupal\globallink\GlExchangeAdapter::getTranslator()

Get translator.

Return value

\Drupal\tmgmt\TranslatorInterface|null The loaded translator if successfully loaded, otherwise null.

File

src/GlExchangeAdapter.php, line 50

Class

GlExchangeAdapter
Provides an interface to the provided library.

Namespace

Drupal\globallink

Code

public function getTranslator() {
  return $this->translator;
}