You are here

public function MediaEntityRendererInterface::renderArray in Gutenberg 8.2

Return the media entity render array.

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

array Render array of the media entity.

1 method overrides MediaEntityRendererInterface::renderArray()
MediaEntityRenderer::renderArray in src/MediaEntityRenderer.php
Return the media entity render array.

File

src/MediaEntityRendererInterface.php, line 36

Class

MediaEntityRendererInterface
Renders media entities.

Namespace

Drupal\gutenberg

Code

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