You are here

public function WSConnectorGraphQL::__construct in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSConnector/WSConnectorGraphQL.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorGraphQL::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides WSConnectorSimpleHTTP::__construct

File

src/Plugin/WSConnector/WSConnectorGraphQL.php, line 24

Class

WSConnectorGraphQL
HTTP Connector.

Namespace

Drupal\wsdata\Plugin\WSConnector

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Client $http_client, Token $token, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $http_client, $token, $language_manager);
  $this->http_client = $http_client;
  $this->token = $token;
  $this->language_manager = $language_manager;
}