a-blog cms PHP API Reference

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

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
Return values
string

        
On this page

Search results