public static function UIkitComponents::getMenuStyle in UIkit Components 8.3
Same name and namespace in other branches
- 8.2 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents::getMenuStyle()
Returns the menu style.
Parameters
string $menu: The name of the menu.
Return value
bool Returns menu style, FALSE otherwise.
5 calls to UIkitComponents::getMenuStyle()
- MenuEditForm::form in src/
Form/ MenuEditForm.php - Gets the actual form array to be built.
- template_preprocess_menu__uikit_list in includes/
preprocess.inc - Implements template_preprocess_HOOK() for menu--uikit-list.html.twig.
- template_preprocess_menu__uikit_nav in includes/
preprocess.inc - Implements template_preprocess_HOOK() for menu--uikit-nav.html.twig.
- template_preprocess_menu__uikit_subnav in includes/
preprocess.inc - Implements template_preprocess_HOOK() for menu--uikit-subnav.html.twig.
- uikit_components_theme_suggestions_menu_alter in includes/
alter.inc - Implements hook_theme_suggestions_HOOK_alter().
File
- src/
UIkitComponents.php, line 188
Class
- UIkitComponents
- Provides helper functions for the UIkit Components module.
Namespace
Drupal\uikit_componentsCode
public static function getMenuStyle($menu) {
return \Drupal::state()
->get($menu . '_menu_style') ?: 0;
}