Add method  to twig extention