You are here

public function Twig_TokenParser_For::decideForFork in Translation template extractor 7.3

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

File

vendor/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',
  ));
}