3 namespace Drupal\entity_embed;
5 use Drupal\Core\Entity\EntityInterface;
8 * Defines services that are responsible for building of embedded entities.
12 interface EntityEmbedBuilderInterface {
15 * Builds the render array for an embedded entity.
17 * @param \Drupal\Core\Entity\EntityInterface $entity
18 * The entity to be rendered.
19 * @param array $context
20 * (optional) Array of context values, corresponding to the attributes on
26 * @todo improve documentation
28 public function buildEntityEmbed(EntityInterface $entity, array $context = []);