[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/ -> TemplateWrapper.php (summary)

Exposes a template to userland.

Author: Fabien Potencier <fabien@symfony.com>
File Size: 161 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  __construct()
  render()
  display()
  hasBlock()
  getBlockNames()
  renderBlock()
  displayBlock()
  getSourceContext()
  getTemplateName()
  unwrap()

Functions
Functions that are not part of a class:

__construct(Environment $env, Template $template)   X-Ref
This method is for internal use only and should never be called
directly (use Twig\Environment::load() instead).


render($context = [])   X-Ref
Renders the template.

param: array $context An array of parameters to pass to the template
return: string The rendered template

display($context = [])   X-Ref
Displays the template.

param: array $context An array of parameters to pass to the template

hasBlock($name, $context = [])   X-Ref
Checks if a block is defined.

param: string $name    The block name
param: array  $context An array of parameters to pass to the template
return: bool

getBlockNames($context = [])   X-Ref
Returns defined block names in the template.

param: array $context An array of parameters to pass to the template
return: string[] An array of defined template block names

renderBlock($name, $context = [])   X-Ref
Renders a template block.

param: string $name    The block name to render
param: array  $context An array of parameters to pass to the template
return: string The rendered block

displayBlock($name, $context = [])   X-Ref
Displays a template block.

param: string $name    The block name to render
param: array  $context An array of parameters to pass to the template

getSourceContext()   X-Ref

return: Source

getTemplateName()   X-Ref

return: string

unwrap()   X-Ref

return: Template



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1