protected function JsonapiHelper::getHttpClient in Entity Share 8.2
Same name and namespace in other branches
- 8 modules/entity_share_client/src/Service/JsonapiHelper.php \Drupal\entity_share_client\Service\JsonapiHelper::getHttpClient()
Helper function to get the Http Client.
Return value
\GuzzleHttp\Client A HTTP client to request JSON:API endpoints.
1 call to JsonapiHelper::getHttpClient()
- JsonapiHelper::updateRelationships in modules/
entity_share_client/ src/ Service/ JsonapiHelper.php - Create or update the entity reference field values of an entity.
File
- modules/
entity_share_client/ src/ Service/ JsonapiHelper.php, line 827
Class
- JsonapiHelper
- Class JsonapiHelper.
Namespace
Drupal\entity_share_client\ServiceCode
protected function getHttpClient() {
if (!$this->httpClient) {
$this->httpClient = $this->remoteManager
->prepareJsonApiClient($this->remote);
}
return $this->httpClient;
}