Change menu twig function to SimpleFunction