You are here

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

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

File

src/WeMegaMenuBuilder.php, line 762

Class

WeMegaMenuBuilder

Namespace

Drupal\we_megamenu

Code

public static function getMenuSubIds($item) {
  $subtree = $item['subtree'];
  $ids = [];
  foreach ($subtree as $sub_item) {
    $ids[] = $sub_item['derivativeId'];
  }
  return $ids;
}