You are here

public function EntityAccessDeniedHttpException::getError in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException::getError()
  2. 10 core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException::getError()

Returns the error.

Return value

array The error.

File

core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php, line 84

Class

EntityAccessDeniedHttpException
Enhances the access denied exception with information about the entity.

Namespace

Drupal\jsonapi\Exception

Code

public function getError() {
  return $this->error;
}