You are here

public function EntityEmbedBuilderInterface::buildEntityEmbed in Entity Embed 8

Builds the render array for an embedded entity.

@todo improve documentation

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to be rendered.

array $context: (optional) Array of context values, corresponding to the attributes on the embed HTML tag.

Return value

array A render array.

1 method overrides EntityEmbedBuilderInterface::buildEntityEmbed()
EntityEmbedBuilder::buildEntityEmbed in src/EntityEmbedBuilder.php
Builds the render array for an embedded entity.

File

src/EntityEmbedBuilderInterface.php, line 28

Class

EntityEmbedBuilderInterface
Defines services that are responsible for building of embedded entities.

Namespace

Drupal\entity_embed

Code

public function buildEntityEmbed(EntityInterface $entity, array $context = []);