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

Yoast / Yoast-SEO-for-TYPO3 / 21521134747

30 Jan 2026 03:30PM UTC coverage: 0.866% (-0.4%) from 1.275%
21521134747

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

0 of 550 new or added lines in 53 files covered. (0.0%)

33 existing lines in 21 files now uncovered.

23 of 2657 relevant lines covered (0.87%)

0.03 hits per line

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

0.0
/Classes/ViewHelpers/RecordLinksViewHelper.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\ViewHelpers;
13

14
use TYPO3\CMS\Backend\Routing\UriBuilder;
15
use TYPO3\CMS\Core\Utility\GeneralUtility;
16
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
17

18
class RecordLinksViewHelper extends AbstractViewHelper
19
{
20
    public function initializeArguments(): void
21
    {
22
        $this->registerArgument('uid', 'int', 'uid of record to be edited', true);
×
23
        $this->registerArgument('table', 'string', 'target database table', true);
×
NEW
24
        $this->registerArgument('command', 'string', '', true);
×
NEW
25
        $this->registerArgument('module', 'string', '', true);
×
26
    }
27

28
    public function render(): string
29
    {
UNCOV
30
        $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
×
NEW
31
        $returnUri = $uriBuilder->buildUriFromRoute($this->arguments['module'], $_GET);
×
32

33
        $module = '';
×
34
        $urlParameters = [];
×
NEW
35
        switch ($this->arguments['command']) {
×
36
            case 'edit':
×
37
                $urlParameters = [
×
38
                    'edit' => [
×
NEW
39
                        $this->arguments['table'] => [
×
NEW
40
                            $this->arguments['uid'] => $this->arguments['command'],
×
41
                        ],
×
42
                    ],
×
43
                    'returnUrl' => (string)$returnUri,
×
44
                ];
×
45
                $module = 'record_edit';
×
46
                break;
×
47
            case 'delete':
×
48
                $urlParameters = [
×
NEW
49
                    'cmd[' . $this->arguments['table'] . '][' . $this->arguments['uid'] . '][delete]' => 1,
×
50
                    'redirect' => (string)$returnUri,
×
51
                ];
×
52
                $module = 'tce_db';
×
53
                break;
×
54
        }
55

56
        return (string)$uriBuilder->buildUriFromRoute($module, $urlParameters);
×
57
    }
58
}
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