You are here

public static function ConnectorInfo::setUpCurrentClientInfo in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 src/Smartling/ConnectorInfo.php \Drupal\tmgmt_smartling\Smartling\ConnectorInfo::setUpCurrentClientInfo()

Set up current client id and version.

2 calls to ConnectorInfo::setUpCurrentClientInfo()
SmartlingApiFactory::create in src/Smartling/SmartlingApiFactory.php
Returns API object as a service.
SmartlingTranslator::getApiWrapper in src/Plugin/tmgmt/Translator/SmartlingTranslator.php

File

src/Smartling/ConnectorInfo.php, line 62
SmartlingApiFactory.php.

Class

ConnectorInfo
Class ConnectorInfo @package Drupal\tmgmt_smartling\Smartling

Namespace

Drupal\tmgmt_smartling\Smartling

Code

public static function setUpCurrentClientInfo() {
  BaseApiAbstract::setCurrentClientId(self::getLibName());
  BaseApiAbstract::setCurrentClientVersion(self::getLibVersion());
  BaseApiAbstract::setCurrentClientUserAgentExtension(self::getDependenciesVersionsAsString());
}