Broken Twig function

Created on 12 February 2025, about 2 months ago

Problem/Motivation

The module declares the obfuscate Twig function.
This function appears to be broken because it returns a Twig filter.

Steps to reproduce

Add this to a Twig template:

{{ obfuscate('test@example.com') }}

It fails with this error:

Twig\ExtensionSet::getFunction(): Return value must be of type ?Twig\TwigFunction, Twig\TwigFilter returned

Proposed resolution

TwigExtension::getFunctions() should probably return an array of TwigFunction objects.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024