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

Fixed twig replace notation.

parent 8f70ee41
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
{# Add further classes from multivalue options field #}
{% for option in paragraph.field_paragraphs_button_options %}
{# Add option classes to button classes #}
{% set button_classes = button_classes|merge([option.value|replace('_', '-')]) %}
{% set button_classes = button_classes|merge([option.value|replace({'_': '-'})]) %}
{% endfor %}
{% block content %}
......
......@@ -76,7 +76,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 #}
......@@ -92,7 +92,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