app/Module/ModuleThemeTrait.php
public function menuPendingChanges(?Tree $tree): ?Menu
    {
        if ($tree instanceof Tree && $tree->hasPendingEdit() && Auth::isModerator($tree)) {
            $url = route('show-pending', [
                'ged' => $tree->name(),
                'url' => app(ServerRequestInterface::class)->getUri(),
            ]);

            return new Menu(I18N::translate('Pending changes'), $url, 'menu-pending');
        }

        return null;
    }
public function menuPendingChanges(?Tree $tree): ?Menu
    {
        if ($tree instanceof Tree && $tree->hasPendingEdit() && Auth::isModerator($tree)) {
            $url = route('show-pending', [
                'ged' => $tree->name(),
                'url' => app(ServerRequestInterface::class)->getUri(),
            ]);

            return new Menu(I18N::translate('Pending changes'), $url, 'menu-pending');
        }

        return null;
    }
public function menuPendingChanges ( ? Tree $ tree ) : ? Menu { if ( $ tree instanceof Tree && $ tree -> hasPendingEdit ( ) && Auth :: isModerator ( $ tree ) ) { $ url = route ( 'show-pending' , [ 'ged' => $ tree -> name ( ) , 'url' => app ( ServerRequestInterface :: class ) -> getUri ( ) , ] ) ; return new Menu ( I18N :: translate ( 'Pending changes' ) , $ url , 'menu-pending' ) ; } return null ; }
Create a pending changes menu.

@param Tree|null $tree

@return Menu|null
Create a pending changes menu .