Bug #88939 » ext_tables.php

Guido Schmechel, 2019-09-25 17:15

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

    
6

    
7
if (TYPO3_MODE == 'BE') {
8

    
9
    /* @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
10
    $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
11
    $svgProvider = \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class;
12
    $extIconPath = 'EXT:sitepackage/Resources/Public/Image/svg/';
13

    
14
    $iconRegistry->registerIcon(
15
        'foobar-flush',
16
        $svgProvider,
17
        ['source' => 'foobar-flush.svg']
18
    );
19

    
20
    // register Clear Cache Menu hook
21
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearFoobarCache']
22
        = Foobar\Sitepackage\Hooks\Backend\FlushFoobarCacheHook::class;
23
}
(1-1/3)