Skip to content

Commit 3fd680f

Browse files
authored
Merge pull request #15 from b13/task/v14
[TASK] Add support for TYPO3 v14
2 parents c15935f + a373a30 commit 3fd680f

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

Configuration/Icons.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
return [
4+
'content-codeblock' => [
5+
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
6+
'source' => 'EXT:codeblock/Resources/Public/Icons/content-codeblock.svg',
7+
]
8+
];

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 || ^13.0"
10+
"typo3/cms-core": "^10.4 || ^11.5 || ^12.0 || ^13.0 || ^14.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.1.0',
1313
'constraints' => [
1414
'depends' => [
15-
'typo3' => '10.4.0-13.99.99',
15+
'typo3' => '10.4.0-14.99.99',
1616
],
1717
],
1818
];

ext_localconf.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
if ((\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class))->getMajorVersion() < 12) {
77
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['codeblock'] =
88
\B13\Codeblock\Hooks\CodeblockPreviewRenderer::class;
9-
}
109

11-
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
12-
$iconRegistry->registerIcon(
13-
'content-codeblock',
14-
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
15-
[
16-
'source' => 'EXT:codeblock/Resources/Public/Icons/content-codeblock.svg',
17-
]
18-
);
10+
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
11+
$iconRegistry->registerIcon(
12+
'content-codeblock',
13+
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
14+
[
15+
'source' => 'EXT:codeblock/Resources/Public/Icons/content-codeblock.svg',
16+
]
17+
);
18+
}
1919
});

0 commit comments

Comments
 (0)