Adding supported tokens

This commit is contained in:
Pavel Shevaev 2022-12-08 18:47:27 +03:00
parent 7c0dff92d1
commit 06ea2187fe
1 changed files with 11 additions and 0 deletions

View File

@ -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',