Class Twig_TokenParser_Sandbox

InheritanceTwig_TokenParser_Sandbox » Twig_TokenParser

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

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

See also for details.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$parser Twig_Parser Twig_TokenParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
decideBlockEnd() Twig_TokenParser_Sandbox
getTag() Twig_TokenParser_Sandbox
parse() Twig_TokenParser_Sandbox
setParser() Sets the parser associated with this token parser. Twig_TokenParser

Method Details

decideBlockEnd() public method

public void decideBlockEnd ( Twig_Token $token )
getTag() public method

public void getTag ( )
parse() public method

public void parse ( Twig_Token $token )