public function ResourceObjectNormalizer::__construct in Drupal 9
Same name and namespace in other branches
- 8 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 43
Class
- ResourceObjectNormalizer
- Converts the JSON:API module ResourceObject into a JSON:API array structure.
Namespace
Drupal\jsonapi\NormalizerCode
public function __construct(ResourceObjectNormalizationCacher $cacher) {
$this->cacher = $cacher;
}