You are here

public function RenderNormalizer::__construct in REST Views 8

Same name and namespace in other branches
  1. 2.0.x src/Normalizer/RenderNormalizer.php \Drupal\rest_views\Normalizer\RenderNormalizer::__construct()

DataNormalizer constructor.

Parameters

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

File

src/Normalizer/RenderNormalizer.php, line 36

Class

RenderNormalizer
Unwrap a RenderableData object and render the element inside.

Namespace

Drupal\rest_views\Normalizer

Code

public function __construct(RendererInterface $renderer) {
  $this->renderer = $renderer;
}