You are here

public function EntityEmbedTwigExtension::getFunctions in Entity Embed 8

File

src/Twig/EntityEmbedTwigExtension.php, line 61

Class

EntityEmbedTwigExtension
Provide entity embedding function within Twig templates.

Namespace

Drupal\entity_embed\Twig

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('entity_embed', [
      $this,
      'getRenderArray',
    ]),
  ];
}