You are here

public static function WeMegaMenuBuilder::repositionMenuItems in Drupal Mega Menu 8.x

Same name and namespace in other branches
  1. 8 src/WeMegaMenuBuilder.php \Drupal\we_megamenu\WeMegaMenuBuilder::repositionMenuItems()

Reposition menu items based on what changed

Parameters

string $menu_name: Public static function menuItemInsert menu_name.

string $theme_name: Public static function menuItemInsert theme_name.

object $menu_config: Public static function menuItemInsert menu_config.

object $child_item: Public static function menuItemInsert child_item.

File

src/WeMegaMenuBuilder.php, line 696

Class

WeMegaMenuBuilder

Namespace

Drupal\we_megamenu

Code

public static function repositionMenuItems($menu_name, $theme_name = '', $menu_config, $child_item) {
  $list_menu_items = WeMegaMenuBuilder::getMenuItems($menu_name);
  \Drupal::logger('megamenu')
    ->warning(print_r(json_encode($list_menu_items), true));
  foreach ($list_menu_items as $uuid => $childs) {
  }
}