src/Silvestra/Component/Admin/Menu/AdminMenuBuilder.php
public function build()
    {
        $event = new AdminMenuEvent();

        $this->eventDispatcher->dispatch(Admin::MENU, $event);

        return $event->getItems();
    }
public function build()
    {
        $event = new AdminMenuEvent();

        $this->eventDispatcher->dispatch(Admin::MENU, $event);

        return $event->getItems();
    }
public function build ( ) { $ event = new AdminMenuEvent ( ) ; $ this -> eventDispatcher -> dispatch ( Admin :: MENU , $ event ) ; return $ event -> getItems ( ) ; }
Build admin menu.

@return array|AdminMenuItem[]
Build admin menu .