You are here

public function Twig_Template::renderBlock in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Template.php \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:

bool $useBlocks Whether to use the current set of blocks:

Return value

string The rendered block

File

vendor/Twig/Template.php, line 188

Class

Twig_Template
Default base class for compiled templates.

Code

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