You are here

public function GoogleTranslator::__construct in TMGMT Translator Google 8

Constructs a LocalActionBase object.

Parameters

\GuzzleHttp\ClientInterface $client: The Guzzle HTTP client.

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.

Overrides PluginBase::__construct

File

src/Plugin/tmgmt/Translator/GoogleTranslator.php, line 93
Contains \Drupal\tmgmt_microsoft\Plugin\tmgmt\Translator\MicrosoftTranslator.

Class

GoogleTranslator
Google translator plugin.

Namespace

Drupal\tmgmt_google\Plugin\tmgmt\Translator

Code

public function __construct(ClientInterface $client, array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->client = $client;
}