public static function WeMegaMenuBuilder::createNewMegamenuCellItem in Drupal Mega Menu 8.x
Same name and namespace in other branches
- 8 src/WeMegaMenuBuilder.php \Drupal\we_megamenu\WeMegaMenuBuilder::createNewMegamenuCellItem()
1 call to WeMegaMenuBuilder::createNewMegamenuCellItem()
File
- src/
WeMegaMenuBuilder.php, line 824
Class
Namespace
Drupal\we_megamenuCode
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;
}