public function MediaEntityRenderer::__construct in Gutenberg 8
Same name and namespace in other branches
- 8.2 src/MediaEntityRenderer.php \Drupal\gutenberg\MediaEntityRenderer::__construct()
MediaEntityRenderer constructor.
Parameters
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
MediaEntityRenderer.php, line 39
Class
- MediaEntityRenderer
- Renders media entities to the HTML.
Namespace
Drupal\gutenbergCode
public function __construct(RendererInterface $renderer, EntityTypeManagerInterface $entity_type_manager) {
$this->renderer = $renderer;
$this->entityTypeManager = $entity_type_manager;
}