Security update for Core, with self-updated composer
[yaffs-website] / web / themes / contrib / bootstrap / icons.inc
1 <?php
2 /**
3  * @file
4  * Icon API support to provide Bootstrap Framework glyphicons.
5  */
6
7 use Drupal\bootstrap\Bootstrap;
8
9 /**
10  * Implements hook_icon_providers().
11  */
12 function bootstrap_icon_providers() {
13   $providers['bootstrap'] = [
14     'title' => t('Bootstrap'),
15     'url' => 'http://getbootstrap.com/components/#glyphicons',
16   ];
17   return $providers;
18 }
19
20 /**
21  * Implements hook_icon_bundles().
22  */
23 function bootstrap_icon_bundles() {
24   $bundles = [];
25   if (Bootstrap::getTheme()->hasGlyphicons()) {
26     $bundles['bootstrap'] = [
27       'render' => 'sprite',
28       'provider' => 'bootstrap',
29       'title' => t('Bootstrap'),
30       'version' => t('Icons by Glyphicons'),
31       'variations' => [
32         'icon-white' => t('White'),
33       ],
34       'settings' => [
35         'tag' => 'span',
36       ],
37       'icons' => Bootstrap::glyphicons(),
38     ];
39   }
40   return $bundles;
41 }