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

Yoast / Yoast-SEO-for-TYPO3 / 13327579701

14 Feb 2025 10:43AM UTC coverage: 1.276%. First build
13327579701

push

github

web-flow
Merge pull request #597 from Yoast/feature/v11

[FEATURE] Release 11.0.0

21 of 894 new or added lines in 76 files covered. (2.35%)

35 of 2744 relevant lines covered (1.28%)

0.04 hits per line

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

0.0
/Classes/Service/YoastEnvironmentService.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace YoastSeoForTypo3\YoastSeo\Service;
6

7
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
8

9
class YoastEnvironmentService
10
{
11
    public function __construct(
12
        protected ConfigurationManagerInterface $configurationManager
NEW
13
    ) {}
×
14

15
    /**
16
     * Returns true if Yoast extension is in development mode. You need a webpack dev server running to load
17
     * JS files if not in production mode
18
     *
19
     * You can set development by using TypoScript "module.tx_yoastseo.settings.developmentMode = 1"
20
     *
21
     * @return bool
22
     */
23
    public function isDevelopmentMode(): bool
24
    {
NEW
25
        $configuration = $this->getTyposcriptConfiguration();
×
NEW
26
        return (int)($_ENV['YOAST_DEVELOPMENT_MODE'] ?? 0) === 1 || (int)($configuration['developmentMode'] ?? 0) === 1;
×
27
    }
28

29
    /**
30
     * @return array<string, mixed>
31
     */
32
    protected function getTypoScriptConfiguration(): array
33
    {
NEW
34
        return $this->configurationManager->getConfiguration(
×
NEW
35
            ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
×
NEW
36
            'yoastseo'
×
NEW
37
        );
×
38
    }
39
}
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