add twig function to manage sync provider