You are here

public function Twig_TokenParser_For::decideForFork in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/TokenParser/For.php \Twig_TokenParser_For::decideForFork()

File

vendor/twig/twig/lib/Twig/TokenParser/For.php, line 68

Class

Twig_TokenParser_For
Loops over each item of a sequence.

Code

public function decideForFork(Twig_Token $token) {
  return $token
    ->test(array(
    'else',
    'endfor',
  ));
}