You are here

public function RemoteInterface::getHttpClient in Entity Share 8.3

Prepares a client object with options pulled from the auth plugin.

Parameters

bool $json: Is this client for JSON operations?

Return value

\GuzzleHttp\Client The configured client.

1 method overrides RemoteInterface::getHttpClient()
Remote::getHttpClient in modules/entity_share_client/src/Entity/Remote.php
Prepares a client object with options pulled from the auth plugin.

File

modules/entity_share_client/src/Entity/RemoteInterface.php, line 42

Class

RemoteInterface
Provides an interface for defining Remote entities.

Namespace

Drupal\entity_share_client\Entity

Code

public function getHttpClient(bool $json);