You are here

protected function Twig_ExpressionParser::isBinary in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/ExpressionParser.php \Twig_ExpressionParser::isBinary()
1 call to Twig_ExpressionParser::isBinary()
Twig_ExpressionParser::parseExpression in vendor/twig/twig/lib/Twig/ExpressionParser.php

File

vendor/twig/twig/lib/Twig/ExpressionParser.php, line 113

Class

Twig_ExpressionParser
Parses expressions.

Code

protected function isBinary(Twig_Token $token) {
  return $token
    ->test(Twig_Token::OPERATOR_TYPE) && isset($this->binaryOperators[$token
    ->getValue()]);
}