Skip to content

Commit 8054617

Browse files
committed
[TwigComponent] Adding note about min version of Twig for spread operator
1 parent 26a72bb commit 8054617

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,8 @@ normal ``{{ }}`` syntax:
997997
// and pass object, or table, or anything you imagine
998998
<twig:Alert :foo="['col' => ['foo', 'oof']]" />
999999

1000-
To forward attributes to another component, use `{{...}}` spread operator syntax:
1000+
To forward attributes to another component, use `{{...}}` spread operator syntax.
1001+
This requires Twig 3.7.0 or higher:
10011002

10021003
.. code-block:: html+twig
10031004

0 commit comments

Comments
 (0)