public function HttpExceptionNormalizer::__construct in JSON:API 8
Same name and namespace in other branches
- 8.2 src/Normalizer/HttpExceptionNormalizer.php \Drupal\jsonapi\Normalizer\HttpExceptionNormalizer::__construct()
HttpExceptionNormalizer constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
Normalizer/ HttpExceptionNormalizer.php, line 43
Class
- HttpExceptionNormalizer
- Normalizes an HttpException in compliance with the JSON API specification.
Namespace
Drupal\jsonapi\NormalizerCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}