You are here

public function Twig_TokenParser_Sandbox::decideBlockEnd in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/TokenParser/Sandbox.php \Twig_TokenParser_Sandbox::decideBlockEnd()

File

vendor/twig/twig/lib/Twig/TokenParser/Sandbox.php, line 47

Class

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

Code

public function decideBlockEnd(Twig_Token $token) {
  return $token
    ->test('endsandbox');
}