public function Twig_Template::renderBlock

Renders a block.

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

Parameters

string $name The block name to render:

array $context The context:

array $blocks The current set of blocks:

Return value

string The rendered block

File

drupal/core/vendor/twig/twig/lib/Twig/Template.php, line 173

Class

Twig_Template
Default base class for compiled templates.

Code

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