You are here

public function FieldItemListNormalizer::__construct in Facebook Instant Articles 3.x

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

FieldItemListNormalizer constructor.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\fb_instant_articles\TransformerFactory $transformer_factory: Transformer factory.

File

src/Normalizer/FieldItemListNormalizer.php, line 51

Class

FieldItemListNormalizer
Normalize FieldItemList object into an Instant Article object.

Namespace

Drupal\fb_instant_articles\Normalizer

Code

public function __construct(RendererInterface $renderer, TransformerFactory $transformer_factory) {
  $this->renderer = $renderer;
  $this->transformerFactory = $transformer_factory;
}