diff options
| author | Greg Roach <fisharebest@gmail.com> | 2021-04-23 10:33:08 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2021-04-28 15:43:49 +0100 |
| commit | c9c6f2ec6e88594e58f14a6418e0de5aaa1484bd (patch) | |
| tree | 9436395efa67c4626f01246de19562e35f8d5238 /app/Http/RequestHandlers/ModulesMapProvidersPage.php | |
| parent | 32294542f5c0786d6b52bc6af4645d1580151e05 (diff) | |
| download | webtrees-c9c6f2ec6e88594e58f14a6418e0de5aaa1484bd.tar.gz webtrees-c9c6f2ec6e88594e58f14a6418e0de5aaa1484bd.tar.bz2 webtrees-c9c6f2ec6e88594e58f14a6418e0de5aaa1484bd.zip | |
Merge: #3803, Merge: #3706
Diffstat (limited to 'app/Http/RequestHandlers/ModulesMapProvidersPage.php')
| -rw-r--r-- | app/Http/RequestHandlers/ModulesMapProvidersPage.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/Http/RequestHandlers/ModulesMapProvidersPage.php b/app/Http/RequestHandlers/ModulesMapProvidersPage.php new file mode 100644 index 0000000000..ec2688adb1 --- /dev/null +++ b/app/Http/RequestHandlers/ModulesMapProvidersPage.php @@ -0,0 +1,47 @@ +<?php + +/** + * webtrees: online genealogy + * Copyright (C) 2021 webtrees development team + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +declare(strict_types=1); + +namespace Fisharebest\Webtrees\Http\RequestHandlers; + +use Fisharebest\Webtrees\I18N; +use Fisharebest\Webtrees\Module\ModuleMapProviderInterface; +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; + +use function view; + +/** + * Show a list of modules. + */ +class ModulesMapProvidersPage extends AbstractModuleComponentPage +{ + /** + * @param ServerRequestInterface $request + * + * @return ResponseInterface + */ + public function handle(ServerRequestInterface $request): ResponseInterface + { + return $this->listComponents( + ModuleMapProviderInterface::class, + view('icons/map') . ' ' . I18N::translate('Map providers'), + I18N::translate('Use maps in webtrees.') + ); + } +} |
