function ResourceObjectNormalizer::__construct

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

Constructs a ResourceObjectNormalizer object.

Parameters

\Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher $cacher: The entity normalization cacher.

File

core/modules/jsonapi/src/Normalizer/ResourceObjectNormalizer.php, line 38

Class

ResourceObjectNormalizer
Converts the JSON:API module ResourceObject into a JSON:API array structure.

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(ResourceObjectNormalizationCacher $cacher) {
    $this->cacher = $cacher;
}

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