You are here

function fontawesome_icon_bundles in Font Awesome Icons 8

Same name and namespace in other branches
  1. 8.2 fontawesome.module \fontawesome_icon_bundles()
  2. 7.3 fontawesome.module \fontawesome_icon_bundles()
  3. 7 fontawesome.module \fontawesome_icon_bundles()
  4. 7.2 fontawesome.module \fontawesome_icon_bundles()

Implements hook_icon_bundles().

@todo Extract icons from CSS or JSON file (currently not possible).

File

./fontawesome.module, line 140
Drupal integration with Font Awesome, the iconic font for use with Bootstrap.

Code

function fontawesome_icon_bundles() {
  $bundles['fontawesome'] = [
    'title' => 'Font Awesome',
    'provider' => 'fontawesome',
    'render' => 'sprite',
    'settings' => [
      'tag' => 'i',
    ],
    'icons' => fontawesome_extract_icons(),
  ];
  return $bundles;
}