public function RemoteManagerInterface::jsonApiRequest in Entity Share 8.3
Performs a HTTP request on a JSON:API endpoint. Wraps the HTTP client.
We need to override this method during tests to emulate another website.
Parameters
\Drupal\entity_share_client\Entity\RemoteInterface $remote: The remote website on which to perform the request.
string $method: HTTP method.
string $url: URL to request.
Return value
\Psr\Http\Message\ResponseInterface The response.
See also
\GuzzleHttp\ClientInterface::request()
1 method overrides RemoteManagerInterface::jsonApiRequest()
- 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/ RemoteManagerInterface.php, line 50
Class
- RemoteManagerInterface
- Remote manager interface methods.
Namespace
Drupal\entity_share_client\ServiceCode
public function jsonApiRequest(RemoteInterface $remote, $method, $url);