forked from brotkrueml/schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
38 lines (35 loc) · 1.32 KB
/
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
defined('TYPO3_MODE') || die('Access denied.');
(function () {
if (!TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('adminpanel')) {
return;
}
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Core\Imaging\IconRegistry::class);
foreach (['documentation-google', 'documentation-schema', 'documentation-yandex', 'module-adminpanel'] as $icon) {
$iconRegistry->registerIcon(
'ext-schema-' . $icon,
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => sprintf(
'EXT:%s/Resources/Public/Icons/%s.svg',
Brotkrueml\Schema\Extension::KEY,
$icon
),
]
);
}
if (!$iconRegistry->isRegistered('actions-image')) {
// TYPO3 version 9 does not ship the image icon
$iconRegistry->registerIcon(
'actions-image',
TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => sprintf(
'EXT:%s/Resources/Public/Icons/actions-image.svg',
Brotkrueml\Schema\Extension::KEY
),
]
);
}
})();