You are here

public function Twig_TokenParser_If::decideIfEnd in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/TokenParser/If.php \Twig_TokenParser_If::decideIfEnd()

File

vendor/twig/twig/lib/Twig/TokenParser/If.php, line 73

Class

Twig_TokenParser_If
Tests a condition.

Code

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