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