public function ImageEntityNormalizer::__construct in Consumer Image Styles 8
Same name and namespace in other branches
- 8.2 src/Normalizer/ImageEntityNormalizer.php \Drupal\consumer_image_styles\Normalizer\ImageEntityNormalizer::__construct()
Constructs an EntityNormalizer object.
Parameters
\Drupal\jsonapi\LinkManager\LinkManager $link_manager: The link manager.
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON API resource type repository.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\consumers\Negotiator $consumer_negotiator: The consumer negotiator.
Overrides EntityNormalizer::__construct
File
- src/
Normalizer/ ImageEntityNormalizer.php, line 70
Class
Namespace
Drupal\consumer_image_styles\NormalizerCode
public function __construct(LinkManager $link_manager, ResourceTypeRepositoryInterface $resource_type_repository, EntityTypeManagerInterface $entity_type_manager, Negotiator $consumer_negotiator) {
$this->linkManager = $link_manager;
$this->resourceTypeRepository = $resource_type_repository;
$this->entityTypeManager = $entity_type_manager;
$this->consumerNegotiator = $consumer_negotiator;
parent::__construct($link_manager, $resource_type_repository, $entity_type_manager);
}