Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drowl_paragraphs-3350144
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drowl_paragraphs-3350144
Commits
fc4906ef
Commit
fc4906ef
authored
3 years ago
by
Julian Pustkuchen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed twig replace notation.
parent
0110953d
No related branches found
Branches containing commit
Tags
7.x-1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/drowl_paragraphs_types/templates/paragraph--drowl-paragraphs-types--symbol.html.twig
+2
-2
2 additions, 2 deletions
...lates/paragraph--drowl-paragraphs-types--symbol.html.twig
with
2 additions
and
2 deletions
modules/drowl_paragraphs_types/templates/paragraph--drowl-paragraphs-types--symbol.html.twig
+
2
−
2
View file @
fc4906ef
...
...
@@ -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
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment