5 * Icon API support to provide Bootstrap Framework glyphicons.
8 use Drupal\bootstrap\Bootstrap;
11 * Implements hook_icon_providers().
13 function bootstrap_icon_providers() {
14 $providers['bootstrap'] = [
15 'title' => t('Bootstrap'),
16 'url' => 'https://getbootstrap.com/docs/3.3/components/#glyphicons',
22 * Implements hook_icon_bundles().
24 function bootstrap_icon_bundles() {
26 if (Bootstrap::getTheme()->hasGlyphicons()) {
27 $bundles['bootstrap'] = [
29 'provider' => 'bootstrap',
30 'title' => t('Bootstrap'),
31 'version' => t('Icons by Glyphicons'),
33 'icon-white' => t('White'),
38 'icons' => Bootstrap::glyphicons(),