You are here

public function ExternalRequest::__construct in GraphQL 8.3

ExternalRequest constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition array.

\GuzzleHttp\ClientInterface $httpClient: The http client service.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/ExternalUrl/ExternalRequest.php, line 61

Class

ExternalRequest
Issue an external request and retrieve the response object.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Routing\ExternalUrl

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, ClientInterface $httpClient) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->httpClient = $httpClient;
}