-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
31 lines (28 loc) · 1.06 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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Register Icons
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'extension-osm-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:osm/Resources/Public/Icons/Extension.svg']
);
/**
* Register own preview renderer in backend for TYPO3 < 12
* Todo: Can be removed when TYPO3 11 support is dropped
*/
$layout = 'cms/layout/class.tx_cms_layout.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['osm_pi1'] =
\In2code\Osm\Hooks\PageLayoutView\Plugin1PreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$layout]['tt_content_drawItem']['osm_pi2'] =
\In2code\Osm\Hooks\PageLayoutView\Plugin2PreviewRenderer::class;
}
);