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

CPS-IT / handlebars-forms / 22296296773

23 Feb 2026 07:10AM UTC coverage: 0.0%. First build
22296296773

push

github

eliashaeussler
Initial commit

0 of 447 new or added lines in 21 files covered. (0.0%)

0 of 447 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/Classes/Fluid/ViewHelperInvoker.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "handlebars_forms".
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17

18
namespace CPSIT\Typo3HandlebarsForms\Fluid;
19

20
use TYPO3\CMS\Fluid;
21
use TYPO3Fluid\Fluid as FluidStandalone;
22

23
/**
24
 * ViewHelperInvoker
25
 *
26
 * @author Elias Häußler <e.haeussler@familie-redlich.de>
27
 * @license GPL-2.0-or-later
28
 */
29
final readonly class ViewHelperInvoker
30
{
31
    /**
32
     * @param array<string, mixed> $arguments
33
     * @param (\Closure(FluidStandalone\Core\ViewHelper\TagBuilder): mixed)|null $closure
34
     */
NEW
35
    public function invoke(
×
36
        Fluid\Core\Rendering\RenderingContext $renderingContext,
37
        string $viewHelperClassName,
38
        array $arguments = [],
39
        ?\Closure $closure = null,
40
    ): ViewHelperInvocationResult {
NEW
41
        $tag = new FluidStandalone\Core\ViewHelper\TagBuilder();
×
NEW
42
        $viewHelper = $renderingContext->getViewHelperResolver()->createViewHelperInstanceFromClassName($viewHelperClassName);
×
43

NEW
44
        if ($viewHelper instanceof FluidStandalone\Core\ViewHelper\AbstractTagBasedViewHelper) {
×
NEW
45
            $viewHelper->setTagBuilder($tag);
×
46
        }
47

NEW
48
        $content = $renderingContext->getViewHelperInvoker()->invoke(
×
NEW
49
            $viewHelper,
×
NEW
50
            $arguments,
×
NEW
51
            $renderingContext,
×
NEW
52
            static fn() => $closure ? $closure($tag) : '',
×
NEW
53
        );
×
54

NEW
55
        return new ViewHelperInvocationResult($viewHelper, $renderingContext, $content, $tag);
×
56
    }
57
}
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