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

CPS-IT / handlebars-forms / 24175366870

09 Apr 2026 06:09AM UTC coverage: 0.582% (-0.007%) from 0.589%
24175366870

Pull #28

github

web-flow
Merge 6d820a2bc into 51332cec7
Pull Request #28: [FEATURE] Support configuration of rendering order for `SummaryPage`

0 of 15 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

7 of 1203 relevant lines covered (0.58%)

0.02 hits per line

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

0.0
/Classes/ContentObject/RenderingOrder.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\ContentObject;
19

20
use TYPO3\CMS\Form;
21

22
/**
23
 * RenderingOrder
24
 *
25
 * @author Elias Häußler <e.haeussler@familie-redlich.de>
26
 * @license GPL-2.0-or-later
27
 */
28
enum RenderingOrder: string
29
{
30
    case Flat = 'flat';
31
    case Hierarchical = 'hierarchical';
32

NEW
33
    public static function determineFromRenderable(Form\Domain\Model\Renderable\RootRenderableInterface $renderable): self
×
34
    {
NEW
35
        if ($renderable instanceof Form\Domain\Model\FormElements\Page && $renderable->getType() === 'SummaryPage') {
×
NEW
36
            return self::Flat;
×
37
        }
38

NEW
39
        return self::Hierarchical;
×
40
    }
41
}
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