You are here

public static function EntityEmbedTwigExtension::create in Entity Embed 8

File

src/Twig/EntityEmbedTwigExtension.php, line 44

Class

EntityEmbedTwigExtension
Provide entity embedding function within Twig templates.

Namespace

Drupal\entity_embed\Twig

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('entity_type.manager'), $container
    ->get('entity_embed.builder'));
}