feat: improved handling of fields to be rendered as static text

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent 5d69e4a8aa
commit ff39bf365c
8 changed files with 211 additions and 82 deletions
+3
View File
@@ -27,6 +27,9 @@ class AppExtension extends AbstractExtension
new TwigFunction('icon', [AppRuntime::class, 'renderIcon'], ['needs_environment' => true, 'is_safe' => ['html']]),
new TwigFunction('is_participant_eligible', [AppRuntime::class, 'isParticipantEligible']),
new TwigFunction('qa_attribute', [AppRuntime::class, 'renderQaAttribute'], ['is_safe' => ['html']]),
new TwigFunction('is_static_text', [AppRuntime::class, 'isStaticText']),
new TwigFunction('is_hidden', [AppRuntime::class, 'isHidden']),
new TwigFunction('gravatar_url', [AppRuntime::class, 'getGravatarUrl']),
];
}
}