Skip to content

[TwigComponent] Parent function does not work in the content of a twig component #1875

Open
@Nek-

Description

@Nek-

I tried the following stupid code:

{% block choice_row %}
    <twig:Select label="{{ form.vars.label|default(name|humanize)|trans }}">
        {{ parent() }}
    </twig:Select>
{% endblock %}

But the parent() function does not work inside a twig component. 😅 It was a bit disturbing. Not sure it's a bug or a feature request to be honest.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions