You are here

public function ImageNormalizerValue::__construct in Consumer Image Styles 8

Same name and namespace in other branches
  1. 8.2 src/Normalizer/Value/ImageNormalizerValue.php \Drupal\consumer_image_styles\Normalizer\Value\ImageNormalizerValue::__construct()

ImageNormalizerValue constructor.

File

src/Normalizer/Value/ImageNormalizerValue.php, line 29

Class

ImageNormalizerValue

Namespace

Drupal\consumer_image_styles\Normalizer\Value

Code

public function __construct(ValueExtractorInterface $variants, EntityNormalizerValue $subject) {
  $this->subject = $subject;
  $this->variants = $variants;
  $this
    ->addCacheableDependency($variants);
}