1*853f2b8aSGreg Roach<?php 2*853f2b8aSGreg Roach 3*853f2b8aSGreg Roach/** 4*853f2b8aSGreg Roach * webtrees: online genealogy 5*853f2b8aSGreg Roach * Copyright (C) 2021 webtrees development team 6*853f2b8aSGreg Roach * This program is free software: you can redistribute it and/or modify 7*853f2b8aSGreg Roach * it under the terms of the GNU General Public License as published by 8*853f2b8aSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*853f2b8aSGreg Roach * (at your option) any later version. 10*853f2b8aSGreg Roach * This program is distributed in the hope that it will be useful, 11*853f2b8aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*853f2b8aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*853f2b8aSGreg Roach * GNU General Public License for more details. 14*853f2b8aSGreg Roach * You should have received a copy of the GNU General Public License 15*853f2b8aSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 16*853f2b8aSGreg Roach */ 17*853f2b8aSGreg Roach 18*853f2b8aSGreg Roachdeclare(strict_types=1); 19*853f2b8aSGreg Roach 20*853f2b8aSGreg Roachnamespace Fisharebest\Webtrees\Http\RequestHandlers; 21*853f2b8aSGreg Roach 22*853f2b8aSGreg Roachuse Fisharebest\Webtrees\I18N; 23*853f2b8aSGreg Roachuse Fisharebest\Webtrees\Module\ModuleSidebarInterface; 24*853f2b8aSGreg Roachuse Psr\Http\Message\ResponseInterface; 25*853f2b8aSGreg Roachuse Psr\Http\Message\ServerRequestInterface; 26*853f2b8aSGreg Roach 27*853f2b8aSGreg Roachuse function view; 28*853f2b8aSGreg Roach 29*853f2b8aSGreg Roach/** 30*853f2b8aSGreg Roach * Show a list of modules. 31*853f2b8aSGreg Roach */ 32*853f2b8aSGreg Roachclass ModulesSidebarsPage extends AbstractModuleComponentPage 33*853f2b8aSGreg Roach{ 34*853f2b8aSGreg Roach /** 35*853f2b8aSGreg Roach * @param ServerRequestInterface $request 36*853f2b8aSGreg Roach * 37*853f2b8aSGreg Roach * @return ResponseInterface 38*853f2b8aSGreg Roach */ 39*853f2b8aSGreg Roach public function handle(ServerRequestInterface $request): ResponseInterface 40*853f2b8aSGreg Roach { 41*853f2b8aSGreg Roach return $this->listComponents( 42*853f2b8aSGreg Roach ModuleSidebarInterface::class, 43*853f2b8aSGreg Roach view('icons/sidebar') . I18N::translate('Sidebars'), 44*853f2b8aSGreg Roach '' 45*853f2b8aSGreg Roach ); 46*853f2b8aSGreg Roach } 47*853f2b8aSGreg Roach} 48