function bootstrap_icon_bundles in Express 8
Implements hook_icon_bundles().
File
- themes/
contrib/ bootstrap/ icons.inc, line 23 - Icon API support to provide Bootstrap Framework glyphicons.
Code
function bootstrap_icon_bundles() {
$bundles = [];
if (Bootstrap::getTheme()
->hasGlyphicons()) {
$bundles['bootstrap'] = [
'render' => 'sprite',
'provider' => 'bootstrap',
'title' => t('Bootstrap'),
'version' => t('Icons by Glyphicons'),
'variations' => [
'icon-white' => t('White'),
],
'settings' => [
'tag' => 'span',
],
'icons' => Bootstrap::glyphicons(),
];
}
return $bundles;
}