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

FluidTYPO3 / vhs / 28022997566

23 Jun 2026 11:30AM UTC coverage: 71.402% (+0.7%) from 70.695%
28022997566

push

github

NamelessCoder
[REMOVAL] Remove asset feature

Use any other method - for example, all supported versions of
TYPO3 contain the AssetCollector feature.

6 of 8 new or added lines in 2 files covered. (75.0%)

30 existing lines in 2 files now uncovered.

4926 of 6899 relevant lines covered (71.4%)

14.6 hits per line

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

83.33
/Classes/ViewHelpers/Page/HeaderViewHelper.php
1
<?php
2
namespace FluidTYPO3\Vhs\ViewHelpers\Page;
3

4
/*
5
 * This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.md file that was distributed with this source code.
9
 */
10

11
use FluidTYPO3\Vhs\Core\ViewHelper\AbstractViewHelper;
12
use FluidTYPO3\Vhs\Utility\ContextUtility;
13
use TYPO3\CMS\Core\Page\PageRenderer;
14
use TYPO3\CMS\Core\Utility\GeneralUtility;
15

16
/**
17
 * ViewHelper used to place header blocks in document header
18
 */
19
class HeaderViewHelper extends AbstractViewHelper
20
{
21
    public function render(): string
22
    {
23
        if (ContextUtility::isBackend()) {
7✔
NEW
24
            return '';
×
25
        }
26

27
        /** @var string|null $content */
28
        $content = $this->renderChildren();
7✔
29

30
        /** @var PageRenderer $pageRenderer */
31
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
7✔
32
        $pageRenderer->addHeaderData((string) $content);
7✔
33
        return '';
7✔
34
    }
35
}
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