Skip to content

Commit 89cfbc1

Browse files
committed
[TASK] Use different parent module based on version
1 parent 189adee commit 89cfbc1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Configuration/Backend/Modules.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<?php
22

3+
use TYPO3\CMS\Core\Information\Typo3Version;
4+
5+
$parent = (new Typo3Version())->getMajorVersion() >= 14 ? 'admin' : 'tools';
6+
37
return [
48
'aim' => [
5-
'parent' => 'admin',
9+
'parent' => $parent,
610
'position' => ['before' => '*'],
711
'appearance' => [
812
'dependsOnSubmodules' => true,

0 commit comments

Comments
 (0)