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

Yoast / Yoast-SEO-for-TYPO3 / 22309740172

23 Feb 2026 02:12PM UTC coverage: 10.09% (+8.8%) from 1.275%
22309740172

push

github

RinyVT
[FEATURE] Version 12.0.0, added v14 support, removed v11 support including php8.0 and php8.1, rewrote backend javascript functionality to typescript and webcomponents

28 of 552 new or added lines in 53 files covered. (5.07%)

33 existing lines in 21 files now uncovered.

268 of 2656 relevant lines covered (10.09%)

0.27 hits per line

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

0.0
/Classes/Service/Frontend/LegacyFrontendService.php
1
<?php
2

3
/**
4
 * This file is part of the "yoast_seo" extension for TYPO3 CMS.
5
 *
6
 * For the full copyright and license information, please read the
7
 * LICENSE.txt file that was distributed with this source code.
8
 */
9

10
declare(strict_types=1);
11

12
namespace YoastSeoForTypo3\YoastSeo\Service\Frontend;
13

14
use Psr\Http\Message\ServerRequestInterface;
15
use TYPO3\CMS\Core\Http\ApplicationType;
16
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
17

18
readonly class LegacyFrontendService implements FrontendServiceInterface
19
{
20
    public function isFrontendRequest(): bool
21
    {
NEW
22
        return ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface
×
NEW
23
            && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend();
×
24
    }
25

26
    /**
27
     * @return array<string, mixed>
28
     */
29
    public function getTyposcriptConfiguration(): array
30
    {
NEW
31
        return $this->getTypoScriptFrontendController()->config['config'] ?? [];
×
32
    }
33

34
    public function getPageUid(): int
35
    {
NEW
36
        return $this->getTypoScriptFrontendController()->page['uid'] ?? $this->getTypoScriptFrontendController()->id;
×
37
    }
38

39
    /**
40
     * @return array<int, array<string, mixed>>
41
     */
42
    public function getRootLine(): array
43
    {
NEW
44
        return $this->getTypoScriptFrontendController()->rootLine ?? [];
×
45
    }
46

47
    public function isSiteRoot(): bool
48
    {
NEW
49
        return (bool)($this->getTypoScriptFrontendController()->page['is_siteroot'] ?? false);
×
50
    }
51

52
    public function getCacheIdentifier(string $suffix): string
53
    {
NEW
54
        return $this->getTypoScriptFrontendController()->newHash . $suffix;
×
55
    }
56

57
    public function getCacheTimeout(): int
58
    {
NEW
59
        return $this->getTyposcriptFrontendController()->get_cache_timeout();
×
60
    }
61

62
    protected function getTyposcriptFrontendController(): TypoScriptFrontendController
63
    {
NEW
64
        return $GLOBALS['TSFE'];
×
65
    }
66
}
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