You are here

public function HttpExceptionNormalizer::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Normalizer/HttpExceptionNormalizer.php \Drupal\jsonapi\Normalizer\HttpExceptionNormalizer::__construct()

HttpExceptionNormalizer constructor.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

core/modules/jsonapi/src/Normalizer/HttpExceptionNormalizer.php, line 44

Class

HttpExceptionNormalizer
Normalizes an HttpException in compliance with the JSON:API specification.

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}