protected function NspiController::errorResponse in Acquia Connector 8
Same name and namespace in other branches
- 8.2 tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::errorResponse()
- 3.x tests/modules/src/Controller/NspiController.php \Drupal\acquia_connector_test\Controller\NspiController::errorResponse()
Format the error response.
Parameters
mixed $code: Error code.
string $message: Error message.
Return value
array Error response.
5 calls to NspiController::errorResponse()
- NspiController::basicAuthenticator in tests/
modules/ src/ Controller/ NspiController.php - Basic authenticator.
- NspiController::getCommunicationSettings in tests/
modules/ src/ Controller/ NspiController.php - Test return communication settings for an account.
- NspiController::getCredentials in tests/
modules/ src/ Controller/ NspiController.php - Test returns subscriptions for an email.
- NspiController::nspiUpdate in tests/
modules/ src/ Controller/ NspiController.php - SPI API site update.
- NspiController::validateAuthenticator in tests/
modules/ src/ Controller/ NspiController.php - Test validates an Acquia authenticator.
File
- tests/
modules/ src/ Controller/ NspiController.php, line 581
Class
- NspiController
- Class NspiController.
Namespace
Drupal\acquia_connector_test\ControllerCode
protected function errorResponse($code, $message) {
return [
'code' => $code,
'message' => $message,
'error' => TRUE,
];
}