8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5684ac commit 4ba9b27Copy full SHA for 4ba9b27
reference/twig_reference.rst
@@ -141,23 +141,6 @@ asset_version
141
``packageName`` *(optional)*
142
**type**: ``string`` | ``null`` **default**: ``null``
143
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
161
Returns the current version of the package, more information in
162
:ref:`templates-link-to-assets`.
163
0 commit comments