protected function appendTemplate(
        $template,
        \Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event,
        \Elcodi\Component\Plugin\Entity\Plugin $plugin,
        array $extraContextParams = []
    ) {
        $event->setContent(
            $event->getContent() .
            $this
                ->twig
                ->render(
                    $template,
                    array_merge(
                        $event->getContext(),
                        ['plugin' => $plugin],
                        $extraContextParams
                    )
                )
        );
    }
protected function appendTemplate(
        $template,
        \Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event,
        \Elcodi\Component\Plugin\Entity\Plugin $plugin,
        array $extraContextParams = []
    ) {
        $event->setContent(
            $event->getContent() .
            $this
                ->twig
                ->render(
                    $template,
                    array_merge(
                        $event->getContext(),
                        ['plugin' => $plugin],
                        $extraContextParams
                    )
                )
        );
    }
protected function appendTemplate ( $ template , \ Elcodi \ Component \ Plugin \ EventDispatcher \ Interfaces \ EventInterface $ event , \ Elcodi \ Component \ Plugin \ Entity \ Plugin $ plugin , array $ extraContextParams = [ ] ) { $ event -> setContent ( $ event -> getContent ( ) . $ this -> twig -> render ( $ template , array_merge ( $ event -> getContext ( ) , [ 'plugin' => $ plugin ] , $ extraContextParams ) ) ) ; }
Render a template and append to the current content.

@param string                                                             $template
@param \Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event
@param array                                                              $extraContextParams
Render a template and append to the current content .