You are here

interface EntityEmbedBuilderInterface in Entity Embed 8

Defines services that are responsible for building of embedded entities.

@internal

Hierarchy

Expanded class hierarchy of EntityEmbedBuilderInterface

All classes that implement EntityEmbedBuilderInterface

2 files declare their use of EntityEmbedBuilderInterface
EntityEmbedFilter.php in src/Plugin/Filter/EntityEmbedFilter.php
EntityEmbedTwigExtension.php in src/Twig/EntityEmbedTwigExtension.php

File

src/EntityEmbedBuilderInterface.php, line 12

Namespace

Drupal\entity_embed
View source
interface EntityEmbedBuilderInterface {

  /**
   * Builds the render array for an embedded entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity to be rendered.
   * @param array $context
   *   (optional) Array of context values, corresponding to the attributes on
   *   the embed HTML tag.
   *
   * @return array
   *   A render array.
   *
   * @todo improve documentation
   */
  public function buildEntityEmbed(EntityInterface $entity, array $context = []);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityEmbedBuilderInterface::buildEntityEmbed public function Builds the render array for an embedded entity. 1