app/Module/ModuleThemeTrait.php
public function userMenu(?Tree $tree): array
    {
        return array_filter([
            $this->menuPendingChanges($tree),
            $this->menuMyPages($tree),
            $this->menuThemes(),
            $this->menuLanguages(),
            $this->menuLogin(),
            $this->menuLogout(),
        ]);
    }
public function userMenu(?Tree $tree): array
    {
        return array_filter([
            $this->menuPendingChanges($tree),
            $this->menuMyPages($tree),
            $this->menuThemes(),
            $this->menuLanguages(),
            $this->menuLogin(),
            $this->menuLogout(),
        ]);
    }
public function userMenu ( ? Tree $ tree ) : array { return array_filter ( [ $ this -> menuPendingChanges ( $ tree ) , $ this -> menuMyPages ( $ tree ) , $ this -> menuThemes ( ) , $ this -> menuLanguages ( ) , $ this -> menuLogin ( ) , $ this -> menuLogout ( ) , ] ) ; }
Generate a list of items for the user menu.

@param Tree|null $tree

@return Menu[]
Generate a list of items for the user menu .