You are here

public function Twig_TokenParser_If::decideIfFork in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/TokenParser/If.php \Twig_TokenParser_If::decideIfFork()

File

vendor/Twig/TokenParser/If.php, line 68

Class

Twig_TokenParser_If
Tests a condition.

Code

public function decideIfFork(Twig_Token $token) {
  return $token
    ->test(array(
    'elseif',
    'else',
    'endif',
  ));
}