Twig extension to render type and priority labels

Missing PHPDoc