Twig_Token::test
Tests the current token for a type and/or a value.
Parameters may be: * just type * type and value (or array of possible values) * just value (or array of possible values) (NAME_TYPE is used as type)
Signature
public function test(array|integer
$type,
[array|string|null
$values = null] )
Parameters
$type
— object- The type to test
$values
— object- The token value
Returns
- Boolean