function _ultimenu_is_applicable in Ultimenu 8.2
Checks if we are using the default theme.
2 calls to _ultimenu_is_applicable()
- ultimenu_page_bottom in ./
ultimenu.module - Implements hook_page_bottom().
- ultimenu_preprocess_html in ./
ultimenu.module - Implements hook_preprocess_html().
File
- ./
ultimenu.module, line 96 - Build Ultimenu blocks based on menu, and their regions on enabled menu items.
Code
function _ultimenu_is_applicable() {
static $applicable;
if (!isset($applicable)) {
$theme = \Drupal::theme()
->getActiveTheme()
->getName();
$applicable = ultimenu()
->getThemeDefault() == $theme;
}
return $applicable;
}