You are here

public static function UIkitComponents::getNavStyleModifier in UIkit Components 8.3

Returns the nav style modifier.

Parameters

string $menu: The name of the menu.

Return value

bool Returns TRUE if nav style modifier is set, FALSE otherwise.

2 calls to UIkitComponents::getNavStyleModifier()
MenuEditForm::form in src/Form/MenuEditForm.php
Gets the actual form array to be built.
template_preprocess_menu__uikit_nav in includes/preprocess.inc
Implements template_preprocess_HOOK() for menu--uikit-nav.html.twig.

File

src/UIkitComponents.php, line 240

Class

UIkitComponents
Provides helper functions for the UIkit Components module.

Namespace

Drupal\uikit_components

Code

public static function getNavStyleModifier($menu) {
  return \Drupal::state()
    ->get($menu . '_menu_style_nav_style_modifiers') ?: 0;
}