cs_simple_type filter
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
wrenge 2024-11-27 10:31:30 +03:00
parent 6146771ce7
commit d083ee09bc
1 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,15 @@ function _add_twig_support(\Twig\Environment $twig)
return cs_type($type);
}
));
$twig->addFilter(new \Twig\TwigFilter('cs_simple_type',
function($type)
{
if($type instanceof \mtgArrType)
return cs_simple_type($type->getValue());
else
return cs_simple_type($type);
}
));
$twig->addFilter(new \Twig\TwigFilter('cs_type_prefix',
function($type)
{