public function TBMegaMenuBuilderInterface::sortByWeight in The Better Mega Menu 8
Same name and namespace in other branches
- 2.x src/TBMegaMenuBuilderInterface.php \Drupal\tb_megamenu\TBMegaMenuBuilderInterface::sortByWeight()
Sort menu items by weight.
Parameters
array $item_sorted: The unsorted weights of all menu items.
Return value
array All weights sorted lowest to highest.
1 method overrides TBMegaMenuBuilderInterface::sortByWeight()
- TBMegaMenuBuilder::sortByWeight in src/
TBMegaMenuBuilder.php - Sort menu items by weight.
File
- src/
TBMegaMenuBuilderInterface.php, line 305
Class
- TBMegaMenuBuilderInterface
- Provides an interface defining a TB MegaMenu builder.
Namespace
Drupal\tb_megamenuCode
public function sortByWeight(array $item_sorted);