public static function renderBody(array $callable, array $context, array $blocks, $lineno = -1, $name = null)
    {
        if (2 !== \count($callable) || !$callable[0] instanceof Template || !\is_string($callable[1])) {
            throw new BodyTagRendererException('The callable argument must be an array with Twig_Template instance and name function of the block to rendering', $lineno, $name ? new Source('', $name) : null);
        }

        /** @var Template $template */
        $template = $callable[0];

        return $template->renderBlock($callable[1], $context, $blocks);
    }
public static function renderBody(array $callable, array $context, array $blocks, $lineno = -1, $name = null)
    {
        if (2 !== \count($callable) || !$callable[0] instanceof Template || !\is_string($callable[1])) {
            throw new BodyTagRendererException('The callable argument must be an array with Twig_Template instance and name function of the block to rendering', $lineno, $name ? new Source('', $name) : null);
        }

        /** @var Template $template */
        $template = $callable[0];

        return $template->renderBlock($callable[1], $context, $blocks);
    }
public static function renderBody ( array $ callable , array $ context , array $ blocks , $ lineno = - 1 , $ name = null ) { if ( 2 !== \ count ( $ callable ) || ! $ callable [ 0 ] instanceof Template || ! \ is_string ( $ callable [ 1 ] ) ) { throw new BodyTagRendererException ( 'The callable argument must be an array with Twig_Template instance and name function of the block to rendering' , $ lineno , $ name ? new Source ( '' , $ name ) : null ) ; } /** @var Template $template */ $ template = $ callable [ 0 ] ; return $ template -> renderBlock ( $ callable [ 1 ] , $ context , $ blocks ) ; }
Render the body of template tag.

@param array       $callable The callable
@param array       $context  The twig context
@param array       $blocks   The twig blocks
@param int         $lineno   The twig lineno
@param null|string $name     The twig template name

@throws BodyTagRendererException

@return string
Render the body of template tag .