public static function UIkitComponents::setNavWidthClasses in UIkit Components 8.3
Same name and namespace in other branches
- 8.2 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents::setNavWidthClasses()
Sets the nav center modifier.
Parameters
string $menu: The name of the menu.
string $value: The nav center modifier value to set for the menu.
1 call to UIkitComponents::setNavWidthClasses()
- MenuEditForm::submitForm in src/
Form/ MenuEditForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- src/
UIkitComponents.php, line 305
Class
- UIkitComponents
- Provides helper functions for the UIkit Components module.
Namespace
Drupal\uikit_componentsCode
public static function setNavWidthClasses($menu, $value) {
\Drupal::state()
->set($menu . '_menu_style_wrapper_widths', $value);
}