function EntityAccessDeniedHttpException::getError

Same name in other branches
  1. 9 core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException::getError()
  2. 8.9.x core/modules/jsonapi/src/Exception/EntityAccessDeniedHttpException.php \Drupal\jsonapi\Exception\EntityAccessDeniedHttpException::getError()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.