CommentedIncludeExtension
extends AbstractExtension
in package
{% include %} タグおよび {{ include() }} 関数の前後にデバッグ用 HTML コメントを出力する Extension。 Environment の 'debug' => true のときのみ有効。
Table of Contents
Methods
- getFunctions() : array<int, TwigFunction>
- getNodeVisitors() : array<int, NodeVisitorInterface>
- includeWithComment() : string
Methods
getFunctions()
public
getFunctions() : array<int, TwigFunction>
Return values
array<int, TwigFunction>getNodeVisitors()
public
getNodeVisitors() : array<int, NodeVisitorInterface>
Return values
array<int, NodeVisitorInterface>includeWithComment()
public
includeWithComment(Environment $env, array<string|int, mixed> $context, mixed $template[, array<string, mixed> $variables = [] ][, bool $withContext = true ][, bool $ignoreMissing = false ][, bool $sandboxed = false ]) : string
Parameters
- $env : Environment
- $context : array<string|int, mixed>
- $template : mixed
- $variables : array<string, mixed> = []
- $withContext : bool = true
- $ignoreMissing : bool = false
- $sandboxed : bool = false