-
Notifications
You must be signed in to change notification settings - Fork 21
/
ext_localconf.php
31 lines (26 loc) · 1.49 KB
/
ext_localconf.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
defined('TYPO3') || defined('TYPO3_MODE') || die();
(static function ($extKey = 'html5videoplayer') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Html5videoplayer', 'PiVideoplayer', [
\HVP\Html5videoplayer\Controller\VideoplayerController::class => 'list,overview,detail',
], [
\HVP\Html5videoplayer\Controller\VideoplayerController::class => 'overview'
]);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$extKey . '_div'] = \HVP\Html5videoplayer\Div::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$extKey . '_vimeo'] = \HVP\Html5videoplayer\Hooks\VimeoProcessDatamap::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['html5videoplayer_pivideoplayer'][$extKey] = \HVP\Html5videoplayer\Hooks\CmsLayout::class . '->getExtensionSummary';
/* Register content element icons */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$bmpIcons = [
'html5videoplayer_icon' => 'EXT:' . $extKey . '/Resources/Public/Icons/Video.png',
];
foreach ($bmpIcons as $identifier => $source) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
[
'source' => $source,
]
);
}
})();