You are here

public function Twig_TokenStream::test in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/TokenStream.php \Twig_TokenStream::test()
  2. 7.2 vendor/Twig/TokenStream.php \Twig_TokenStream::test()

Tests the current token

Return value

bool

File

vendor/Twig/TokenStream.php, line 122

Class

Twig_TokenStream
Represents a token stream.

Code

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