Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityAccessDeniedHttpException.php

EntityAccessDeniedHttpException::$error

The error which caused the 403.

The error contains:

  • entity: The entity which the current user does not 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

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

Class

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

Namespace

Drupal\jsonapi\Exception

Code

protected $error = [];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal