. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\RequestHandlers; use Fisharebest\Webtrees\Http\ViewResponseTrait; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface; use Fisharebest\Webtrees\Services\ModuleService; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; /** * Show a list of modules. */ class ModulesAnalyticsPage extends AbstractModuleComponentPage { /** * @param ServerRequestInterface $request * * @return ResponseInterface */ public function handle(ServerRequestInterface $request): ResponseInterface { return $this->listComponents( ModuleAnalyticsInterface::class, I18N::translate('Tracking and analytics'), I18N::translate('If you use one of the following tracking and analytics services, webtrees can add the tracking codes automatically.') ); } }