public static function WeMegaMenuBuilder::getMenuSubIds in Drupal Mega Menu 8
Same name and namespace in other branches
- 8.x src/WeMegaMenuBuilder.php \Drupal\we_megamenu\WeMegaMenuBuilder::getMenuSubIds()
1 call to WeMegaMenuBuilder::getMenuSubIds()
File
- src/
WeMegaMenuBuilder.php, line 762
Class
Namespace
Drupal\we_megamenuCode
public static function getMenuSubIds($item) {
$subtree = $item['subtree'];
$ids = [];
foreach ($subtree as $sub_item) {
$ids[] = $sub_item['derivativeId'];
}
return $ids;
}