Skip to content

Add missing twig helpers in reference page#22199

Open
nicolas-grekas wants to merge 1 commit intosymfony:7.4from
nicolas-grekas:twig-ref
Open

Add missing twig helpers in reference page#22199
nicolas-grekas wants to merge 1 commit intosymfony:7.4from
nicolas-grekas:twig-ref

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

Claude-generated, I asked it to spot any gap.

@carsonbot carsonbot added this to the 7.4 milestone Mar 25, 2026
@carsonbot carsonbot changed the title Add missing twig helpers in reference page Add missing twig helpers in reference page Mar 25, 2026
Comment on lines +567 to +568
{# dumps multiple variables with labels #}
{{ dump(blog_posts: articles, user: app.user) }}
Copy link
Copy Markdown
Contributor

@MrYamous MrYamous Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that available in Twig too ? It's not in Twig documentation either


Dumps information about template variables using the
:doc:`VarDumper component </components/var_dumper>`. When called without
arguments, all variables available in the template are dumped:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
arguments, all variables available in the template are dumped:
arguments, all variables available in the template are dumped,
including `app` global variable:

javiereguiluz added a commit that referenced this pull request Mar 26, 2026
…Yamous)

This PR was merged into the 6.4 branch.

Discussion
----------

[Workflow] Document name argument for twig functions

Inspired by #22199, the `name` argument for workflow twig functions is not documented

Commits
-------

59a16ad [Workflow] Document name argument for twig functions
``attributes`` *(optional)*
**type**: ``array`` **default**: ``{}``

.. deprecated::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. deprecated::
.. deprecated:: 6.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants