You are here

public function WSConnectorSimpleHTTP::__construct in Web Service Data 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/WSConnector/WSConnectorSimpleHTTP.php \Drupal\wsdata\Plugin\WSConnector\WSConnectorSimpleHTTP::__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 WSConnectorBase::__construct

2 calls to WSConnectorSimpleHTTP::__construct()
WSConnectorGraphQL::__construct in src/Plugin/WSConnector/WSConnectorGraphQL.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
WSConnectorSimpleHTTPWithLangReplacement::__construct in src/Plugin/WSConnector/WSConnectorSimpleHTTPWithLangReplacement.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
2 methods override WSConnectorSimpleHTTP::__construct()
WSConnectorGraphQL::__construct in src/Plugin/WSConnector/WSConnectorGraphQL.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
WSConnectorSimpleHTTPWithLangReplacement::__construct in src/Plugin/WSConnector/WSConnectorSimpleHTTPWithLangReplacement.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/WSConnector/WSConnectorSimpleHTTP.php, line 25

Class

WSConnectorSimpleHTTP
HTTP Connector.

Namespace

Drupal\wsdata\Plugin\WSConnector

Code

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