22 lines
694 B
PHP
22 lines
694 B
PHP
<?php
|
|
|
|
defined('TYPO3_MODE') or die();
|
|
|
|
call_user_func(function () {
|
|
|
|
// Register icons
|
|
$icons = [
|
|
'apps-pagetree-category-page' => 'EXT:ep_events/Resources/Public/images/apps-pagetree-category-page.svg',
|
|
'apps-pagetree-example-page' => 'EXT:ep_events/Resources/Public/images/apps-pagetree-example-page.svg',
|
|
];
|
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
|
foreach ($icons as $identifier => $path) {
|
|
$iconRegistry->registerIcon(
|
|
$identifier,
|
|
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
|
['source' => $path]
|
|
);
|
|
}
|
|
|
|
});
|