function icon_bundle_get_theme in Icon API 8
Same name and namespace in other branches
- 7 icon.module \icon_bundle_get_theme()
Helper function to return the proper theme.
Necessary for displaying a list of icons of a specific bundle.
File
- ./
icon.module, line 507 - icon.module Provides icon integration with menu items.
Code
function icon_bundle_get_theme($bundle, $global = FALSE) {
$theme = \Drupal::theme()
->getActiveTheme()
->getName();
return !empty($bundle['theme']) && !$global ? $bundle['theme'] : $theme;
}