public function GlobalLinkTranslator::__construct in GlobalLink Connect for Drupal 8
Same name and namespace in other branches
- 8.2 src/Plugin/tmgmt/Translator/GlobalLinkTranslator.php \Drupal\globallink\Plugin\tmgmt\Translator\GlobalLinkTranslator::__construct()
Constructs a GlobalLinkTranslator object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\globallink\GlExchangeAdapter $gl_exchange_adapter: The GLExchange library adapter.
\Drupal\tmgmt_file\Format\FormatManager $format_manager: Format manager.
\Psr\Log\LoggerInterface $logger: Logger for this channel.
Overrides PluginBase::__construct
File
- src/
Plugin/ tmgmt/ Translator/ GlobalLinkTranslator.php, line 470
Class
- GlobalLinkTranslator
- GlobalLink translation plugin controller.
Namespace
Drupal\globallink\Plugin\tmgmt\TranslatorCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, GlExchangeAdapter $gl_exchange_adapter, FormatManager $format_manager, LoggerInterface $logger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->glExchangeAdapter = $gl_exchange_adapter;
$this->formatManager = $format_manager;
$this->logger = $logger;
}