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

TYPO3-Headless / headless / 25559178429

08 May 2026 01:47PM UTC coverage: 74.7% (+1.7%) from 73.04%
25559178429

Pull #881

github

web-flow
Merge e3f97f353 into c36c6b6bf
Pull Request #881: [WIP] TYPO3 v14 support - ongoing work - not stable

38 of 58 new or added lines in 10 files covered. (65.52%)

23 existing lines in 2 files now uncovered.

1181 of 1581 relevant lines covered (74.7%)

6.63 hits per line

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

0.0
/Classes/ViewHelpers/DomainViewHelper.php
1
<?php
2

3
/*
4
 * This file is part of the "headless" Extension for TYPO3 CMS.
5
 *
6
 * For the full copyright and license information, please read the
7
 * LICENSE.md file that was distributed with this source code.
8
 */
9

10
declare(strict_types=1);
11

12
namespace FriendsOfTYPO3\Headless\ViewHelpers;
13

14
use FriendsOfTYPO3\Headless\Utility\HeadlessFrontendUrlInterface;
15
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
16

17
class DomainViewHelper extends AbstractViewHelper
18
{
19
    public function __construct(private readonly HeadlessFrontendUrlInterface $urlUtility) {}
20

21
    public function initializeArguments(): void
22
    {
23
        $this->registerArgument('return', 'string', 'value from site configuration');
×
24
    }
25

26
    public function render(): mixed
27
    {
NEW
28
        $urlUtility = $this->urlUtility;
×
29

30
        if (isset($GLOBALS['TYPO3_REQUEST'])) {
×
31
            $urlUtility = $urlUtility->withRequest($GLOBALS['TYPO3_REQUEST']);
×
32
        }
33

NEW
34
        switch ($this->arguments['return']) {
×
35
            case 'frontendBase':
×
36
                return $urlUtility->getFrontendUrl();
×
37
            case 'proxyUrl':
×
38
                return $urlUtility->getProxyUrl();
×
39
            case 'storageProxyUrl':
×
40
                return $urlUtility->getStorageProxyUrl();
×
41
        }
42

NEW
43
        return null;
×
44
    }
45
}
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