You are here

public function MediaEntityRendererInterface::render in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/MediaEntityRendererInterface.php \Drupal\gutenberg\MediaEntityRendererInterface::render()

Render media entities.

Parameters

\Drupal\media\Entity\Media|string $media_entity: Media entity ID or loaded media entity instance.

string $view_mode: (optional) View mode of media entity, 'full' is default.

Return value

string Rendered HTML of the media entity.

1 method overrides MediaEntityRendererInterface::render()
MediaEntityRenderer::render in src/MediaEntityRenderer.php
Render media entities.

File

src/MediaEntityRendererInterface.php, line 23

Class

MediaEntityRendererInterface
Renders media entities.

Namespace

Drupal\gutenberg

Code

public function render($media_entity, string $view_mode = 'full');