Skip to content
Snippets Groups Projects
Commit feea418b authored by Georgi's avatar Georgi
Browse files

[TASK] merge conflicts with master

parents aa5c802d 033d1f1a
No related branches found
Tags 4.2.2
1 merge request!10Feature bugfix release
<?php
/**
* Important! Do not return a variable named $icons, because it will result in an error.
* The core requires this file and then the variable names will clash.
* Either use a closure here, or do not call your variable $icons.
*/
$iconList = [];
foreach (['extension-sg_youtube' => 'youtube.svg'] as $identifier => $path) {
$iconList[$identifier] = [
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
'source' => 'EXT:sg_youtube/Resources/Public/Icons/' . $path,
];
}
return $iconList;
ext_icon.png

27.7 KiB

...@@ -13,14 +13,6 @@ ...@@ -13,14 +13,6 @@
'@import "EXT:sg_youtube/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig"' '@import "EXT:sg_youtube/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig"'
); );
// Register Icons
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'extension-sg_youtube',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:sg_youtube/Resources/Public/Icons/youtube.svg']
);
// Caching // Caching
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sgyoutube_cache'] ??= []; $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sgyoutube_cache'] ??= [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment