ext_localconf.txt

Oliver Hader, 2018-04-04 08:26

Download (695 Bytes)

 
1
<?php
2
if (!defined('TYPO3_MODE')) {
3
	die ('Access denied.');
4
}
5

    
6
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['news_clear_cache'] = \BraProjectfiles\BraProjectfiles\ClearCacheMenu\NewsClearCacheAction::class;
7
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)->registerIcon(
8
    'news-clear-cache-menu-action',
9
    \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
10
    [
11
        'source' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('bra_projectfiles', 'Resources/Public/Icons/CacheMenuItem.png'),
12
        'size' => \TYPO3\CMS\Core\Imaging\Icon::SIZE_LARGE
13
    ]
14
);