src/Silvestra/Component/Admin/Menu/Event/AdminMenuEvent.php
public function getItems()
    {
        uasort(
            $this->items,
            function (AdminMenuItem $first, AdminMenuItem $second) {
                if ($first->getPriority() <= $second->getPriority()) {
                    return 1;
                }

                return -1;
            }
        );

        return $this->items;
    }
public function getItems()
    {
        uasort(
            $this->items,
            function (AdminMenuItem $first, AdminMenuItem $second) {
                if ($first->getPriority() <= $second->getPriority()) {
                    return 1;
                }

                return -1;
            }
        );

        return $this->items;
    }
public function getItems ( ) { uasort ( $ this -> items , function ( AdminMenuItem $ first , AdminMenuItem $ second ) { if ( $ first -> getPriority ( ) <= $ second -> getPriority ( ) ) { return 1 ; } return - 1 ; } ) ; return $ this -> items ; }
Get admin menu items.

@return array|AdminMenuItem[]
Get admin menu items .