You are here

public function TBMegaMenuBuilderInterface::sortByWeight in The Better Mega Menu 2.x

Same name and namespace in other branches
  1. 8 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_megamenu

Code

public function sortByWeight(array $item_sorted);