Commit b1572a6a authored by Malik Naik's avatar Malik Naik
Browse files

Update Icon Filter submodule

parent a92c433c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ function icon_api_theme($existing, $type, $theme, $path) {
      'variables' => [
        'bundle' => NULL,
        'icon' => NULL,
        'icon_style' => NULL,
        'attributes' => array(),
        'wrapper' => 'i'
      ],
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ class FilterIcon extends FilterBase {
            '#theme' => 'icon_api',
            '#bundle' => $match[1],
            '#icon' => $match[2],
            '#icon_style' => \Drupal\icon_api\IconStyle::determinePrefix($match[1], $match[2]),
          ];
        }
      }
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@
{% if attributes is empty %}
  {% set default_class = 'fa-2x' %}
{% endif %}
<{{ wrapper }} class="fa fa-{{ icon }} {{ default_class }} {{ attributes|join(' ') }}"></{{ wrapper }}>
<{{ wrapper }} class="{{ icon_style }} fa-{{ icon }} {{ default_class }} {{ attributes|join(' ') }}"></{{ wrapper }}>