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