function Template::displayBlock
Displays a block.
This method is for internal use only and should never be called directly.
Parameters
string $name The block name to display:
array $context The context:
array $blocks The current set of blocks:
bool $useBlocks Whether to use the current set of blocks:
1 call to Template::displayBlock()
- Template::renderBlock in vendor/
twig/ twig/ src/ Template.php - Renders a block.
File
-
vendor/
twig/ twig/ src/ Template.php, line 136
Class
- Template
- Default base class for compiled templates.
Namespace
TwigCode
public function displayBlock($name, array $context, array $blocks = [], $useBlocks = true, ?self $templateContext = null) : void {
foreach ($this->yieldBlock($name, $context, $blocks, $useBlocks, $templateContext) as $data) {
echo $data;
}
}