Module.php
public function getUserMenu() {
    $event = new BuildUserMenuEvent();
    $this->trigger(self::EVENT_BUILD_USER_MENU, $event);
    $menu = [];
    foreach ($event->items as $block => $items) {
      foreach ($items as $item) {
        $menu[] = $item;
      }
    }
    return $menu;
  }
public function getUserMenu() {
    $event = new BuildUserMenuEvent();
    $this->trigger(self::EVENT_BUILD_USER_MENU, $event);
    $menu = [];
    foreach ($event->items as $block => $items) {
      foreach ($items as $item) {
        $menu[] = $item;
      }
    }
    return $menu;
  }
public function getUserMenu ( ) { $ event = new BuildUserMenuEvent ( ) ; $ this -> trigger ( self :: EVENT_BUILD_USER_MENU , $ event ) ; $ menu = [ ] ; foreach ( $ event -> items as $ block => $ items ) { foreach ( $ items as $ item ) { $ menu [ ] = $ item ; } } return $ menu ; }
Collecting side menu over modules
Collecting side menu over modules