function LinkCollectionNormalizer::__construct

LinkCollectionNormalizer constructor.

Parameters

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

File

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

Class

LinkCollectionNormalizer
Normalizes a LinkCollection object.

Namespace

Drupal\jsonapi\Normalizer

Code

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

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