Skip to content

Commit

Permalink
The spaceless filter is deprecated as of Twig 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
xDeSwa authored and Arkounay committed Sep 13, 2024
1 parent 5f12c8c commit f066105
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions templates/ux_collection_form_theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% endblock %}

{% block ux_collection_entry_row %}
{% apply spaceless %}
{% set allow_insert = form.parent.vars.allow_add and form.parent.vars.display_insert_button %}
<div {% if not row_attr.class|default(false) %}class="pt-0 {{ allow_insert ? 'collection-element-with-insert' : 'mb-3' }}"{% endif%} data-arkounay--ux-collection--collection-target="collectionElement" {% for k, v in row_attr|default %}{{ k }}="{{ v }}"{% endfor %}>
<div class="{{ form.parent.vars.entry_class|default }}">
Expand Down Expand Up @@ -62,11 +61,9 @@
{% endif %}
</div>
</div>
{% endapply %}
{% endblock %}

{% block ux_collection_widget %}
{% apply spaceless %}
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': form_row(prototype)}) %}
{% set attr = attr|merge({'data-prototype-name': prototype.vars.name}) %}
Expand Down Expand Up @@ -113,7 +110,6 @@
</div>
{% endif %}
</div>
{% endapply %}
{% endblock %}

{% block ux_tabbed_collection_row %}
Expand Down

0 comments on commit f066105

Please sign in to comment.