You are here

protected function Twig_ExpressionParser::isUnary in Zircon Profile 8.0

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

File

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

Class

Twig_ExpressionParser
Parses expressions.

Code

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