embed-privacy.php
/**
     * Adds twig functionality
     *
     * @param Event $e
     */
Adds twig functionality
@param Event $e
Adds twig functionality @param Event $e
public function onTwigInitialized(Event $e)
    {
        $this->grav['twig']->twig()->addFilter(
            new \Twig_SimpleFilter('embedprivacy', [$this, 'embedPrivacy'])
        );
        $this->grav['twig']->twig()->addFunction(
            new \Twig_SimpleFunction('embedprivacy', [$this, 'embedPrivacy'])
        );
    }
public function onTwigInitialized ( Event $ e ) { $ this -> grav [ 'twig' ] -> twig ( ) -> addFilter ( new \ Twig_SimpleFilter ( 'embedprivacy' , [ $ this , 'embedPrivacy' ] ) ) ; $ this -> grav [ 'twig' ] -> twig ( ) -> addFunction ( new \ Twig_SimpleFunction ( 'embedprivacy' , [ $ this , 'embedPrivacy' ] ) ) ; }
Adds twig functionality
 @param Event $e
Adds twig functionality @param Event $e