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

FluidTYPO3 / vhs / 30001290505

23 Jul 2026 10:57AM UTC coverage: 70.309% (-1.7%) from 72.022%
30001290505

push

github

NamelessCoder
[TER] 8.0.0

4819 of 6854 relevant lines covered (70.31%)

6.54 hits per line

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

50.0
/Classes/ViewHelpers/Condition/Form/IsRequiredViewHelper.php
1
<?php
2
namespace FluidTYPO3\Vhs\ViewHelpers\Condition\Form;
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 TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
12

13
/**
14
 * ### Is Field Required ViewHelper (condition)
15
 *
16
 * Takes a property (dotted path supported) and renders the
17
 * then-child if the property at the given path has an
18
 * @validate NotEmpty annotation.
19
 */
20
class IsRequiredViewHelper extends HasValidatorViewHelper
21
{
22
    public function render(): mixed
23
    {
24
        $this->arguments['validatorName'] = 'NotEmpty';
9✔
25
        return parent::render();
9✔
26
    }
27

28
    public static function renderStatic(
29
        array $arguments,
30
        \Closure $renderChildrenClosure,
31
        RenderingContextInterface $renderingContext
32
    ): mixed {
33
        $arguments['validatorName'] = 'NotEmpty';
×
34
        return parent::renderStatic($arguments, $renderChildrenClosure, $renderingContext);
×
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc