• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tomasnorre / crawler / 3696698329

pending completion
3696698329

Pull #988

github

GitHub
Merge d1d32bd2d into 3f94d6a4e
Pull Request #988: [WIP][FEATURE] Setup new Backend Module

417 of 417 new or added lines in 9 files covered. (100.0%)

1601 of 2523 relevant lines covered (63.46%)

3.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Classes/Controller/Backend/Helper/UrlBuilder.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace AOE\Crawler\Controller\Backend\Helper;
6

7
/*
8
 * (c) 2020 AOE GmbH <dev@aoe.com>
9
 *
10
 * This file is part of the TYPO3 Crawler Extension.
11
 *
12
 * It is free software; you can redistribute it and/or modify it under
13
 * the terms of the GNU General Public License, either version 2
14
 * of the License, or any later version.
15
 *
16
 * For the full copyright and license information, please read the
17
 * LICENSE.txt file that was distributed with this source code.
18
 *
19
 * The TYPO3 project - inspiring people to share!
20
 */
21

22
use TYPO3\CMS\Backend\Routing\UriBuilder;
23
use TYPO3\CMS\Core\Http\Uri;
24
use TYPO3\CMS\Core\Utility\GeneralUtility;
25

26
/**
27
 * @internal since v9.2.5
28
 */
29
class UrlBuilder
30
{
31
    /**
32
     * Returns the URL to the current module, including $_GET['id'].
33
     *
34
     * @param array $uriParameters optional parameters to add to the URL
35
     *
36
     * @throws \TYPO3\CMS\Backend\Routing\Exception\RouteNotFoundException
37
     */
38
    public static function getBackendModuleUrl(array $uriParameters = [], string $module = 'web_site_crawler'): Uri
39
    {
40
        if (GeneralUtility::_GP('id')) {
×
41
            $uriParameters['id'] = GeneralUtility::_GP('id');
×
42
        }
43
        /** @var UriBuilder $uriBuilder */
44
        $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
×
45
        return $uriBuilder->buildUriFromRoute($module, $uriParameters);
×
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc