public function renderTwigBlock($resource, $blockName, array $options = [])
    {
        if (null !== $this->environment) {
            /* @var \Twig_Template $template */
            $template = $this->environment->loadTemplate($resource);

            return $template->renderBlock($blockName, $options);
        }

        return '';
    }
public function renderTwigBlock($resource, $blockName, array $options = [])
    {
        if (null !== $this->environment) {
            /* @var \Twig_Template $template */
            $template = $this->environment->loadTemplate($resource);

            return $template->renderBlock($blockName, $options);
        }

        return '';
    }
public function renderTwigBlock ( $ resource , $ blockName , array $ options = [ ] ) { if ( null !== $ this -> environment ) { /* @var \Twig_Template $template */ $ template = $ this -> environment -> loadTemplate ( $ resource ) ; return $ template -> renderBlock ( $ blockName , $ options ) ; } return '' ; }
Render the block of twig resource.

@param string $resource
@param string $blockName
@param array  $options

@return string
Render the block of twig resource .