You are here

ImageVariantItemNormalizerValue.php in Consumer Image Styles 8

Same filename and directory in other branches
  1. 8.2 src/Normalizer/Value/ImageVariantItemNormalizerValue.php

File

src/Normalizer/Value/ImageVariantItemNormalizerValue.php
View source
<?php

/**
 * Created by PhpStorm.
 * User: e0ipso
 * Date: 04/09/2017
 * Time: 21:53
 */
namespace Drupal\consumer_image_styles\Normalizer\Value;

use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
use Drupal\jsonapi\Normalizer\Value\FieldItemNormalizerValue;
class ImageVariantItemNormalizerValue extends FieldItemNormalizerValue {
  use RefinableCacheableDependencyTrait;

  /**
   * {@inheritdoc}
   */
  public function rasterizeValue() {
    return $this
      ->rasterizeValueRecursive($this->raw);
  }

}