function LinkCollectionNormalizer::__construct

Same name and namespace in other branches
  1. 10 core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php \Drupal\jsonapi\Normalizer\LinkCollectionNormalizer::__construct()
  2. 11.x core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php \Drupal\jsonapi\Normalizer\LinkCollectionNormalizer::__construct()
  3. 9 core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php \Drupal\jsonapi\Normalizer\LinkCollectionNormalizer::__construct()

LinkCollectionNormalizer constructor.

Parameters

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

File

core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php, line 70

Class

LinkCollectionNormalizer
Normalizes a LinkCollection object.

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(protected AccountInterface $currentUser) {
}

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