|
| | __construct (private Environment $env, private Template $template,) |
| | stream (array $context=[]) |
| | streamBlock (string $name, array $context=[]) |
|
| render (array $context=[]) |
| | display (array $context=[]) |
|
| hasBlock (string $name, array $context=[]) |
| | getBlockNames (array $context=[]) |
|
| renderBlock (string $name, array $context=[]) |
| | displayBlock (string $name, array $context=[]) |
|
| getSourceContext () |
|
| getTemplateName () |
|
| unwrap () |
Exposes a template to userland.
- Auteur
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
◆ __construct()
This method is for internal use only and should never be called directly (use Twig\Environment::load() instead).
◆ display()
| display |
( |
array | $context = [] | ) |
|
◆ displayBlock()
| displayBlock |
( |
string | $name, |
|
|
array | $context = [] ) |
◆ getBlockNames()
| getBlockNames |
( |
array | $context = [] | ) |
|
- Renvoie
- string[] An array of defined template block names
◆ stream()
| stream |
( |
array | $context = [] | ) |
|
- Renvoie
- iterable<scalar|\Stringable|null>
◆ streamBlock()
| streamBlock |
( |
string | $name, |
|
|
array | $context = [] ) |
- Renvoie
- iterable<scalar|\Stringable|null>
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/twig/twig/src/TemplateWrapper.php