You are here

public function Twig_TokenStream::test in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/TokenStream.php \Twig_TokenStream::test()

Tests the current token.

Return value

bool

File

vendor/twig/twig/lib/Twig/TokenStream.php, line 121

Class

Twig_TokenStream
Represents a token stream.

Code

public function test($primary, $secondary = null) {
  return $this->tokens[$this->current]
    ->test($primary, $secondary);
}