You are here

function _bootstrap_glyphicons_supported in Express 8

Determine whether or not Bootstrap Glyphicons can be used.

// Before.
$supported = _bootstrap_glyphicons_supported();

// After.
use Drupal\bootstrap\Bootstrap;
$theme = Bootstrap::getTheme();
$supported = $theme
  ->hasGlyphicons();

Deprecated

Will be removed in a future release.

See also

\Drupal\bootstrap\Theme::hasGlyphicons()

File

themes/contrib/bootstrap/deprecated.php, line 393
This contains deprecated functions that will be removed in a future release.

Code

function _bootstrap_glyphicons_supported() {
  Bootstrap::deprecated();
  return Bootstrap::getTheme()
    ->hasGlyphicons();
}