Skip to content

Commit 3119ed7

Browse files
authored
Merge pull request #12 from b13/v13
[TASK] Raise TYPO3 compatibility for v13
2 parents 135c7f0 + 5c05568 commit 3119ed7

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Configuration/TCA/Overrides/tt_content.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@
33
defined('TYPO3') or die();
44

55
call_user_func(static function () {
6+
7+
if ((\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class))->getMajorVersion() < 12) {
8+
$CTypeSelectItem = [
9+
'LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.CType',
10+
'codeblock',
11+
'content-codeblock'
12+
];
13+
} else {
14+
$CTypeSelectItem = [
15+
'label' => 'LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.CType',
16+
'value' => 'codeblock',
17+
'icon' => 'content-codeblock'
18+
];
19+
}
620
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
721
'tt_content',
822
'CType',
9-
['LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.CType', 'codeblock', 'content-codeblock'],
23+
$CTypeSelectItem,
1024
'html',
1125
'after'
1226
);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"scrivo/highlight.php": "^9.15",
99
"php": "^7.4 || ~8.0",
10-
"typo3/cms-core": "^10.4 || ^11.5 || ^12.0"
10+
"typo3/cms-core": "^10.4 || ^11.5 || ^12.0 || ^13.0"
1111
},
1212
"extra": {
1313
"typo3/cms": {

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'version' => '2.0.2',
1313
'constraints' => [
1414
'depends' => [
15-
'typo3' => '10.4.0-12.99.99',
15+
'typo3' => '10.4.0-13.99.99',
1616
],
1717
],
1818
];

0 commit comments

Comments
 (0)