twig variable better resolving of class and method