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

FluidTYPO3 / vhs / 17432291362

03 Sep 2025 11:39AM UTC coverage: 72.043% (-0.05%) from 72.09%
17432291362

push

github

NamelessCoder
[TER] 7.1.4

5646 of 7837 relevant lines covered (72.04%)

19.99 hits per line

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

75.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\Utility\ContextUtility;
12
use FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper;
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 AbstractAssetViewHelper
20
{
21
    /**
22
     * Render method
23
     *
24
     * @return void
25
     */
26
    public function render()
27
    {
28
        if (ContextUtility::isBackend()) {
7✔
29
            return;
×
30
        }
31

32
        /** @var PageRenderer $pageRenderer */
33
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
7✔
34
        $pageRenderer->addHeaderData((string) $this->getContent());
7✔
35
    }
36
}
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