You are here

protected function Twig_ExpressionParser::isBinary in Translation template extractor 6.3

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

File

vendor/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()]);
}