public function Twig_TokenStream::test in Translation template extractor 7.2
Same name and namespace in other branches
- 6.3 vendor/Twig/TokenStream.php \Twig_TokenStream::test()
- 7.3 vendor/Twig/TokenStream.php \Twig_TokenStream::test()
Tests the current token
Return value
Boolean
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);
}