Skip to content

Commit 4ba9b27

Browse files
committed
remove examples
1 parent e5684ac commit 4ba9b27

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

reference/twig_reference.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,6 @@ asset_version
141141
``packageName`` *(optional)*
142142
**type**: ``string`` | ``null`` **default**: ``null``
143143

144-
.. code-block:: yaml
145-
146-
# config/packages/framework.yaml
147-
framework:
148-
# ...
149-
assets:
150-
packages:
151-
foo_package:
152-
base_path: /avatars
153-
version: 'v2.0'
154-
155-
.. code-block:: twig
156-
157-
{# the image lives at "public/avatars/" #}
158-
{{ asset_version(path = 'avatar.png', packageName = 'foo_package') }}
159-
{# output: v2.0 #}
160-
161144
Returns the current version of the package, more information in
162145
:ref:`templates-link-to-assets`.
163146

0 commit comments

Comments
 (0)