Enhance getModelTwigAttributes related listeners.