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

fnagel / t3extblog / 31410942790

10 Aug 2026 04:49PM UTC coverage: 77.408% (-1.1%) from 78.546%
31410942790

push

github

fnagel
[TASK] Fix PHPMD issue

0 of 1 new or added line in 1 file covered. (0.0%)

59 existing lines in 2 files now uncovered.

2652 of 3426 relevant lines covered (77.41%)

8.02 hits per line

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

0.0
/Classes/EventListener/VisualEditor/ModifyNewContentElementWizardItems.php
1
<?php
2

3
namespace FelixNagel\T3extblog\EventListener\VisualEditor;
4

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

12
use TYPO3\CMS\Backend\Controller\Event\ModifyNewContentElementWizardItemsEvent;
13
use TYPO3\CMS\Core\Attribute\AsEventListener;
14

15
#[AsEventListener('ModifyNewContentElementWizardItems')]
16
class ModifyNewContentElementWizardItems
17
{
18
    public function __invoke(ModifyNewContentElementWizardItemsEvent $event): void
×
19
    {
20
        $items = $event->getWizardItems();
×
21
        $params = $event->getRequest()->getQueryParams();
×
22

23
        // Add tt_content fields for blog posts
24
        if (array_key_exists('tx_t3extblog_blogsystem', $params)) {
×
NEW
25
            foreach (array_keys($items) as $key) {
×
26
                $items[$key]['defaultValues']['irre_parenttable'] = 'tx_t3blog_post';
×
27
                $items[$key]['defaultValues']['irre_parentid'] = (int)current(
×
28
                    // Remove visual editor link anchor from post argument
29
                    explode('#', $params['tx_t3extblog_blogsystem']['post'])
×
30
                );
×
31
            }
32

33
            $event->setWizardItems($items);
×
34
        }
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc