I'm propose move this method to `twig_template_get_attributes` function. What we can get: 1) simplify compilation when php extension avalible (no more conditions like https://github.com/fabpot/Twig/blob/master/lib/Twig/Node/Expression/GetAttr.php#L19 ) 2) some extensions (filters) get possibility use it #535
I'm propose move this method to
twig_template_get_attributesfunction.What we can get: