function fontawesome_theme_suggestions_fontawesomeicon in Font Awesome Icons 8.2
Implements hook_theme_suggestions_HOOK_alter().
File
- ./
fontawesome.module, line 312 - Drupal integration with Font Awesome, the iconic font for use with Bootstrap.
Code
function fontawesome_theme_suggestions_fontawesomeicon(array $variables) {
// Suggest a template with the icon name if it exists.
$suggestions = [];
if (!empty($variables['name'])) {
$suggestions[] = $variables['theme_hook_original'] . '__' . $variables['name'];
}
return $suggestions;
}