function ResourceObjectNormalizer::__construct

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

File

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

Class

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

Namespace

Drupal\jsonapi\Normalizer

Code

public function __construct(#[Autowire(service: 'jsonapi.normalization_cacher')] protected ResourceObjectNormalizationCacher $cacher, private EventDispatcherInterface $eventDispatcher, private EntityFieldManagerInterface $entityFieldManager, private EntityTypeManagerInterface $entityTypeManager) {
}

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