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

FluidTYPO3 / flux / 27753814608

18 Jun 2026 10:39AM UTC coverage: 89.162% (-3.5%) from 92.646%
27753814608

Pull #2288

github

web-flow
Merge 37edf9f2e into 2614049c6
Pull Request #2288: [FEATURE] Prepare for v14 support

210 of 348 new or added lines in 56 files covered. (60.34%)

121 existing lines in 9 files now uncovered.

6228 of 6985 relevant lines covered (89.16%)

40.84 hits per line

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

28.57
/Classes/Integration/BackendLayoutRenderer.php
1
<?php
2
namespace FluidTYPO3\Flux\Integration;
3

4
/*
5
 * This file is part of the FluidTYPO3/Flux 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 Psr\Http\Message\ServerRequestInterface;
12
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
13
use TYPO3\CMS\Backend\View\BackendViewFactory;
14
use TYPO3\CMS\Backend\View\PageLayoutContext;
15
use TYPO3\CMS\Core\Domain\RecordFactory;
16

17
/**
18
 * Proxy around core's BackendLayoutRenderer, to be able to transfer context around together with the drawing class.
19
 */
20
#[Autoconfigure(public: true, autowire: true)]
21
class BackendLayoutRenderer
22
{
23
    /**
24
     * @var PageLayoutContext
25
     */
26
    protected ?PageLayoutContext $transferredContext = null;
27

28
    private \TYPO3\CMS\Backend\View\Drawing\BackendLayoutRenderer $backendLayoutRenderer;
29

30
    public function __construct(BackendViewFactory $backendViewFactory, RecordFactory $recordFactory)
31
    {
NEW
32
        $this->backendLayoutRenderer = new \TYPO3\CMS\Backend\View\Drawing\BackendLayoutRenderer(
×
NEW
33
            $backendViewFactory,
×
NEW
34
            $recordFactory
×
NEW
35
        );
×
36
    }
37

38
    public function getContext(): PageLayoutContext
39
    {
40
        return $this->transferredContext;
4✔
41
    }
42

43
    public function setContext(PageLayoutContext $context): void
44
    {
45
        $this->transferredContext = $context;
4✔
46
    }
47

48
    public function drawContent(
49
        ServerRequestInterface $request,
50
        PageLayoutContext $pageLayoutContext,
51
        bool $renderUnused = true
52
    ): string {
NEW
53
        return $this->backendLayoutRenderer->drawContent($request, $pageLayoutContext, $renderUnused);
×
54
    }
55
}
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