You are here

public function Twig_Template::renderParentBlock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Template.php \Twig_Template::renderParentBlock()

Renders a parent block.

This method is for internal use only and should never be called directly.

@internal

Parameters

string $name The block name to render from the parent:

array $context The context:

array $blocks The current set of blocks:

Return value

string The rendered block

File

vendor/twig/twig/lib/Twig/Template.php, line 203

Class

Twig_Template
Default base class for compiled templates.

Code

public function renderParentBlock($name, array $context, array $blocks = array()) {
  ob_start();
  $this
    ->displayParentBlock($name, $context, $blocks);
  return ob_get_clean();
}