You are here

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

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

File

src/WeMegaMenuBuilder.php, line 824

Class

WeMegaMenuBuilder

Namespace

Drupal\we_megamenu

Code

public static function createNewMegamenuCellItem($menu_item, $menu_id) {
  $new_megamenu_item = new \stdClass();
  $new_megamenu_item->mlid = $menu_id;
  $new_megamenu_item->type = 'we-mega-menu-li';
  $new_megamenu_item->title = $menu_item['title'];
  $new_megamenu_item->item_config = new \stdClass();

  // $megamenu_config->{$derivativeId}['rows_content'][$i][$j]['col_content'][$k]['item_config'];
  return $new_megamenu_item;
}