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

Yoast / Yoast-SEO-for-TYPO3 / 24723291290

21 Apr 2026 12:50PM UTC coverage: 10.457% (+9.2%) from 1.275%
24723291290

push

github

web-flow
Merge pull request #632 from Yoast/feature/yoast-v12

[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

40 of 806 new or added lines in 69 files covered. (4.96%)

40 existing lines in 23 files now uncovered.

284 of 2716 relevant lines covered (10.46%)

0.29 hits per line

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

0.0
/Classes/DataProviders/PagesWithoutDescriptionOverviewDataProvider.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\DataProviders;
13

14
use Doctrine\DBAL\Result;
15
use TYPO3\CMS\Core\Database\ConnectionPool;
16
use TYPO3\CMS\Core\Utility\GeneralUtility;
17
use YoastSeoForTypo3\YoastSeo\Constants\TableNames;
18
use YoastSeoForTypo3\YoastSeo\Utility\YoastUtility;
19

20
class PagesWithoutDescriptionOverviewDataProvider extends AbstractOverviewDataProvider
21
{
22
    public function getKey(): string
23
    {
24
        return 'withoutDescription';
×
25
    }
26

27
    public function getLabel(): string
28
    {
29
        return 'LLL:EXT:yoast_seo/Resources/Private/Language/BackendModuleOverview.xlf:withoutDescription';
×
30
    }
31

32
    public function getDescription(): string
33
    {
34
        return 'LLL:EXT:yoast_seo/Resources/Private/Language/BackendModuleOverview.xlf:withoutDescription.description';
×
35
    }
36

37
    public function getLink(): ?string
38
    {
39
        return 'https://yoa.st/typo3-meta-description';
×
40
    }
41

42
    public function getResults(array $pageIds = []): ?Result
43
    {
NEW
44
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(TableNames::PAGES);
×
45

46
        $constraints = [
×
47
            $queryBuilder->expr()->or(
×
48
                $queryBuilder->expr()->eq('description', $queryBuilder->createNamedParameter('')),
×
49
                $queryBuilder->expr()->isNull('description')
×
50
            ),
×
51
            $queryBuilder->expr()->in('doktype', YoastUtility::getAllowedDoktypes()),
×
52
            $queryBuilder->expr()->eq('tx_yoastseo_hide_snippet_preview', 0),
×
53
            $queryBuilder->expr()->eq('sys_language_uid', $this->dataProviderRequest->getLanguage()),
×
54
        ];
×
55

56
        if (count($pageIds) > 0) {
×
57
            $constraints[] = $queryBuilder->expr()->in(
×
NEW
58
                $this->dataProviderRequest->getLanguage() > 0 ? $GLOBALS['TCA'][TableNames::PAGES]['ctrl']['transOrigPointerField'] : 'uid',
×
59
                $pageIds
×
60
            );
×
61
        }
62

63
        return $queryBuilder->select(...self::PAGES_FIELDS)
×
NEW
64
            ->from(TableNames::PAGES)
×
65
            ->where(...$constraints)
×
66
            ->executeQuery();
×
67
    }
68
}
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