Loading icon_api.module +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ function icon_api_theme($existing, $type, $theme, $path) { 'variables' => [ 'bundle' => NULL, 'icon' => NULL, 'icon_style' => NULL, 'attributes' => array(), 'wrapper' => 'i' ], Loading modules/icon_filter/src/Plugin/Filter/FilterIcon.php +1 −0 Original line number Diff line number Diff line Loading @@ -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]), ]; } } Loading templates/icon-api.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -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 }}> Loading
icon_api.module +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ function icon_api_theme($existing, $type, $theme, $path) { 'variables' => [ 'bundle' => NULL, 'icon' => NULL, 'icon_style' => NULL, 'attributes' => array(), 'wrapper' => 'i' ], Loading
modules/icon_filter/src/Plugin/Filter/FilterIcon.php +1 −0 Original line number Diff line number Diff line Loading @@ -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]), ]; } } Loading
templates/icon-api.html.twig +1 −1 Original line number Diff line number Diff line Loading @@ -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 }}>