forked from kaystrobach/TYPO3.dyncss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
22 lines (22 loc) · 853 Bytes
/
ext_tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
// Add/register icons
if (TYPO3_MODE === 'BE') {
// register svg icons: identifier and filename
$iconsSvg = [
'actions-system-cache-clear-dyncss' => 'actions-system-cache-clear-dyncss.svg'
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach ($iconsSvg as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $path]
);
}
}
},
$_EXTKEY
);