app/Module/ModuleThemeTrait.php
public function menuMyPages(?Tree $tree): ?Menu
    {
        if ($tree instanceof Tree && Auth::id()) {
            return new Menu(I18N::translate('My pages'), '#', 'menu-mymenu', [], array_filter([
                $this->menuMyPage($tree),
                $this->menuMyIndividualRecord($tree),
                $this->menuMyPedigree($tree),
                $this->menuMyAccount(),
                $this->menuControlPanel($tree),
                $this->menuChangeBlocks($tree),
            ]));
        }

        return null;
    }
public function menuMyPages(?Tree $tree): ?Menu
    {
        if ($tree instanceof Tree && Auth::id()) {
            return new Menu(I18N::translate('My pages'), '#', 'menu-mymenu', [], array_filter([
                $this->menuMyPage($tree),
                $this->menuMyIndividualRecord($tree),
                $this->menuMyPedigree($tree),
                $this->menuMyAccount(),
                $this->menuControlPanel($tree),
                $this->menuChangeBlocks($tree),
            ]));
        }

        return null;
    }
public function menuMyPages ( ? Tree $ tree ) : ? Menu { if ( $ tree instanceof Tree && Auth :: id ( ) ) { return new Menu ( I18N :: translate ( 'My pages' ) , '#' , 'menu-mymenu' , [ ] , array_filter ( [ $ this -> menuMyPage ( $ tree ) , $ this -> menuMyIndividualRecord ( $ tree ) , $ this -> menuMyPedigree ( $ tree ) , $ this -> menuMyAccount ( ) , $ this -> menuControlPanel ( $ tree ) , $ this -> menuChangeBlocks ( $ tree ) , ] ) ) ; } return null ; }
A menu for the user's personal pages.

@param Tree|null $tree

@return Menu|null
A menu for the user s personal pages .