Adding supported tokens
This commit is contained in:
parent
7c0dff92d1
commit
06ea2187fe
|
@ -19,6 +19,17 @@ function get_twig(array $inc_path = [])
|
|||
return $twig;
|
||||
}
|
||||
|
||||
function supported_tokens()
|
||||
{
|
||||
return [
|
||||
'default',
|
||||
'optional',
|
||||
'virtual',
|
||||
//TODO: anyone uses it?
|
||||
'is_enum_mask',
|
||||
];
|
||||
}
|
||||
|
||||
function _add_twig_support(\Twig\Environment $twig)
|
||||
{
|
||||
$twig->addTest(new \Twig\TwigTest('instanceof',
|
||||
|
|
Loading…
Reference in New Issue