Documentation

SandboxTokenParser extends AbstractTokenParser
in package

Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.

{% sandbox %} {% include 'user.html' %} {% endsandbox %}

Tags
see
https://twig.symfony.com/doc/api.html#sandbox-extension

for details

Table of Contents

$parser  : Parser
decideBlockEnd()  : mixed
getTag()  : mixed
parse()  : mixed
setParser()  : mixed
Sets the parser associated with this token parser.

Properties

Methods

setParser()

Sets the parser associated with this token parser.

public setParser(Parser $parser) : mixed
Parameters
$parser : Parser
Return values
mixed

Search results