Only add Twig function to frontend