public function Twig_TokenStream::test

Tests the current token

Return value

bool

File

drupal/core/vendor/twig/twig/lib/Twig/TokenStream.php, line 110

Class

Twig_TokenStream
Represents a token stream.

Code

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