From f3fbd68b7215fa8aa17131bdbf486de7e9aa7b7e Mon Sep 17 00:00:00 2001 From: William Hearn Date: Sun, 28 Oct 2018 12:39:18 -0400 Subject: [PATCH] Issue #2881978: Temporarily disable bootstrap icon logic --- src/Bootstrap.php | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/src/Bootstrap.php b/src/Bootstrap.php index d30dfc5..e128165 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -603,25 +603,15 @@ class Bootstrap { // @todo Supply a specific version to _bootstrap_glyphicons() when Icon API // supports versioning. if (self::getTheme()->hasGlyphicons() && in_array($name, self::glyphicons())) { - // Attempt to use the Icon API module, if enabled and it generates output. - if (\Drupal::moduleHandler()->moduleExists('icon')) { - $icon = [ - '#type' => 'icon', - '#bundle' => 'bootstrap', - '#icon' => 'glyphicon-' . $name, - ]; - } - else { - $icon = [ - '#type' => 'html_tag', - '#tag' => 'span', - '#value' => '', - '#attributes' => [ - 'class' => ['icon', 'glyphicon', 'glyphicon-' . $name], - 'aria-hidden' => 'true', - ], - ]; - } + $icon = [ + '#type' => 'html_tag', + '#tag' => 'span', + '#value' => '', + '#attributes' => [ + 'class' => ['icon', 'glyphicon', 'glyphicon-' . $name], + 'aria-hidden' => 'true', + ], + ]; } return $icon ?: $default; -- 2.17.1 (Apple Git-112)