Skip to content

Commit b7cf86c

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Remove a versionadded directive Link to a reference [FrameworkBundle][HttpKernel][TwigBridge] Add an helper to generate fragments URL
2 parents 4c8ec4a + 69ab21b commit b7cf86c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

reference/twig_reference.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,24 @@ falls back to the behavior of `render`_ otherwise.
6363
in the function name, e.g. ``render_hinclude()`` will use the hinclude.js
6464
strategy. This works for all ``render_*()`` functions.
6565

66+
fragment_uri
67+
~~~~~~~~~~~~
68+
69+
.. code-block:: twig
70+
71+
{{ fragment_uri(controller, absolute = false, strict = true, sign = true) }}
72+
73+
``controller``
74+
**type**: ``ControllerReference``
75+
``absolute`` *(optional)*
76+
**type**: ``boolean`` **default**: ``false``
77+
``strict`` *(optional)*
78+
**type**: ``boolean`` **default**: ``true``
79+
``sign`` *(optional)*
80+
**type**: ``boolean`` **default**: ``true``
81+
82+
Generates the URI of :ref:`a fragment <fragments-path-config>`.
83+
6684
controller
6785
~~~~~~~~~~
6886

0 commit comments

Comments
 (0)