HeaderDataViewHelper::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\ViewHelpers;
13
14
use TYPO3\CMS\Core\Page\PageRenderer;
15
use TYPO3\CMS\Core\Utility\GeneralUtility;
16
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
17
18
/**
19
 * ViewHelper to render data in <head> section of website
20
 *
21
 * @author Georg Ringer <[email protected]>
22
 */
23
class HeaderDataViewHelper extends AbstractViewHelper
24
{
25
    /**
26
     * Renders HeaderData
27
     */
28
    public function render(): void
29
    {
30
        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
31
        $pageRenderer->addHeaderData($this->renderChildren());
32
    }
33
}
34