◆ getFunctions()
Returns a list of functions to add to the existing list.
- Renvoie
- TwigFunction[]
Réimplémentée à partir de AbstractExtension.
◆ templateFromString()
| templateFromString |
( |
Environment | $env, |
|
|
string|\Stringable | $template, |
|
|
?string | $name = null ) |
|
static |
Loads a template from a string.
{{ include(template_from_string("Hello {{ name }}")) }}
- Paramètres
-
| string | null | $name | An optional name of the template to be used in error messages |
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/twig/twig/src/Extension/StringLoaderExtension.php