public function EntityEmbedTwigExtension::__construct in Entity Embed 8
Constructs a new EntityEmbedTwigExtension.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\entity_embed\EntityEmbedBuilderInterface $builder: The Entity embed builder service.
File
- src/
Twig/ EntityEmbedTwigExtension.php, line 36
Class
- EntityEmbedTwigExtension
- Provide entity embedding function within Twig templates.
Namespace
Drupal\entity_embed\TwigCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityEmbedBuilderInterface $builder) {
$this->entityTypeManager = $entity_type_manager;
$this->builder = $builder;
}