protected function RemoteManager::getJsonApiHttpClient in Entity Share 8.3
Prepares a client object from the auth plugin.
Parameters
\Drupal\entity_share_client\Entity\RemoteInterface $remote: The remote website on which to perform the request.
Return value
\GuzzleHttp\Client The configured client.
1 call to RemoteManager::getJsonApiHttpClient()
- RemoteManager::jsonApiRequest in modules/
entity_share_client/ src/ Service/ RemoteManager.php - Performs a HTTP request on a JSON:API endpoint. Wraps the HTTP client.
File
- modules/
entity_share_client/ src/ Service/ RemoteManager.php, line 155
Class
- RemoteManager
- Service to wrap requests logic.
Namespace
Drupal\entity_share_client\ServiceCode
protected function getJsonApiHttpClient(RemoteInterface $remote) {
$remote_id = $remote
->id();
if (!isset($this->jsonApiHttpClients[$remote_id])) {
$this->jsonApiHttpClients[$remote_id] = $remote
->getHttpClient(self::JSON_API_CLIENT);
}
return $this->jsonApiHttpClients[$remote_id];
}