You are here

public function LinkCollectionNormalizer::__construct in Consumer Image Styles 8.3

Same name and namespace in other branches
  1. 4.x src/Normalizer/LinkCollectionNormalizer.php \Drupal\consumer_image_styles\Normalizer\LinkCollectionNormalizer::__construct()

Constructs a LinkCollectionNormalizer object.

Parameters

\Symfony\Component\Serializer\Normalizer\NormalizerInterface $inner: The decorated service.

\Drupal\consumers\Negotiator $consumer_negotiator: The consumer negotiator.

\Drupal\consumer_image_styles\ImageStylesProvider: Image styles utility.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/Normalizer/LinkCollectionNormalizer.php, line 66

Class

LinkCollectionNormalizer
Custom normalizer that add the derivatives to image entities.

Namespace

Drupal\consumer_image_styles\Normalizer

Code

public function __construct(NormalizerInterface $inner, Negotiator $consumer_negotiator, ImageStylesProvider $imageStylesProvider, ImageFactory $image_factory, RequestStack $request_stack) {
  $this->inner = $inner;
  $this->consumerNegotiator = $consumer_negotiator;
  $this->imageStylesProvider = $imageStylesProvider;
  $this->imageFactory = $image_factory;
  $this->requestStack = $request_stack;
}