protected function HttpServiceApiWrapperBase::getResponse in HTTP Client Manager 8.2
Get response.
This method is meant to be overridden by any Service Api Wrapper. By default it returns the result array, but it can be used to check if the given response contains errors.
Parameters
\GuzzleHttp\Command\ResultInterface $result: The command response.
Return value
array The response array.
1 call to HttpServiceApiWrapperBase::getResponse()
- HttpServiceApiWrapperBase::callByRequest in src/
Plugin/ HttpServiceApiWrapper/ HttpServiceApiWrapperBase.php - Call by Request.
File
- src/
Plugin/ HttpServiceApiWrapper/ HttpServiceApiWrapperBase.php, line 204
Class
- HttpServiceApiWrapperBase
- Class HttpServiceApiWrapperBase.
Namespace
Drupal\http_client_manager\Plugin\HttpServiceApiWrapperCode
protected function getResponse(ResultInterface $result) {
return $result
->toArray();
}