You are here

protected property EntityAccessDeniedHttpException::$error in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/Exception/EntityAccessDeniedHttpException.php \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException::error

The error which caused the 403.

The error contains:

  • entity: The entity which the current user doens't have access to.
  • pointer: A path in the JSON API response structure pointing to the entity.
  • reason: (Optional) An optional reason for this failure.

Type: array

File

src/Exception/EntityAccessDeniedHttpException.php, line 31

Class

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

Namespace

Drupal\jsonapi\Exception

Code

protected $error = [];