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

FluidTYPO3 / vhs / 28022755494

23 Jun 2026 11:25AM UTC coverage: 71.803% (+1.1%) from 70.695%
28022755494

Pull #1976

github

web-flow
Merge c3ae6c604 into 4208f11cc
Pull Request #1976: [REMOVAL] Remove asset feature

4 of 6 new or added lines in 2 files covered. (66.67%)

2 existing lines in 1 file now uncovered.

4953 of 6898 relevant lines covered (71.8%)

14.63 hits per line

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

80.0
/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 PageRenderer $pageRenderer */
28
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
7✔
29
        $pageRenderer->addHeaderData((string) $this->renderChildren());
7✔
30
        return '';
7✔
31
    }
32
}
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