• 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/Ajax/InternalLinkingSuggestionsHandler.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace YoastSeoForTypo3\YoastSeo\Service\Ajax;
6

7
use Psr\Http\Message\ResponseInterface;
8
use Psr\Http\Message\ServerRequestInterface;
9
use TYPO3\CMS\Core\Http\JsonResponse;
10
use YoastSeoForTypo3\YoastSeo\Service\LinkingSuggestionsService;
11

12
class InternalLinkingSuggestionsHandler extends AbstractAjaxHandler
13
{
14
    public function __construct(
15
        protected LinkingSuggestionsService $linkingSuggestionsService
NEW
16
    ) {}
×
17

18
    public function handle(ServerRequestInterface $request): ResponseInterface
19
    {
NEW
20
        $data = $this->getJsonData($request);
×
21

NEW
22
        $words = $data['words'] ?? [];
×
NEW
23
        $excludedPageId = (int)($data['excludedPage'] ?? 0);
×
NEW
24
        $languageId = (int)($data['languageId'] ?? 0);
×
NEW
25
        $content = (string)($data['content'] ?? '');
×
26

NEW
27
        $links = $this->linkingSuggestionsService->getLinkingSuggestions(
×
NEW
28
            $words,
×
NEW
29
            $excludedPageId,
×
NEW
30
            $languageId,
×
NEW
31
            $content
×
NEW
32
        );
×
33

NEW
34
        return new JsonResponse([
×
NEW
35
            'OK',
×
NEW
36
            'links' => $links,
×
NEW
37
            'excludedPage' => $excludedPageId,
×
NEW
38
            'languageId' => $languageId,
×
NEW
39
        ]);
×
40
    }
41
}
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