Skip to content
Snippets Groups Projects
Commit fc4906ef authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Fixed twig replace notation.

parent 0110953d
No related branches found
Tags 7.x-1.1
No related merge requests found
......@@ -68,7 +68,7 @@
{# Add further classes from multivalue options field #}
{% for option in paragraph.field_paragraphs_icon_options %}
{# Add option classes to icon classes #}
{% set icon_classes = icon_classes|merge([option.value|replace('_', '-')]) %}
{% set icon_classes = icon_classes|merge([option.value|replace({'_': '-'})]) %}
{% endfor %}
{# Icon combo wrapper classes #}
......@@ -82,7 +82,7 @@
{# Add further classes from positions field #}
{% for option in paragraph.field_paragraphs_icon_position %}
{# Add option classes to icon classes #}
{% set icon_combo_classes = icon_combo_classes|merge(['icon-combo--' ~ option.value|replace('_', '-')]) %}
{% set icon_combo_classes = icon_combo_classes|merge(['icon-combo--' ~ option.value|replace({'_', '-'})]) %}
{% endfor %}
{% block content %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment