function fontawesome_theme in Font Awesome Icons 8.2
Implements hook_theme().
File
- ./
fontawesome.module, line 287 - Drupal integration with Font Awesome, the iconic font for use with Bootstrap.
Code
function fontawesome_theme($existing, $type, $theme, $path) {
return [
'fontawesomeicons' => [
'variables' => [
'icons' => NULL,
'layers' => FALSE,
],
],
'fontawesomeicon' => [
'variables' => [
'tag' => 'i',
'name' => NULL,
'style' => NULL,
'settings' => NULL,
'transforms' => NULL,
'mask' => NULL,
'css' => NULL,
],
],
];
}