watchlist/ext_localconf.php

31 lines
1 KiB
PHP
Raw Permalink Normal View History

<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WerkraumMedia\Watchlist\Controller\WatchlistController;
use WerkraumMedia\Watchlist\Extbase\TypeConverter\ItemTypeConverter;
use WerkraumMedia\Watchlist\Extbase\TypeConverter\WatchlistTypeConverter;
2022-09-29 08:41:44 +02:00
use WerkraumMedia\Watchlist\Form\Hook\BeforeRenderingHook;
defined('TYPO3') || die('Access denied.');
(static function (): void {
ExtensionUtility::configurePlugin(
'Watchlist',
'Watchlist',
[
WatchlistController::class => 'index, add, remove',
],
[
WatchlistController::class => 'index',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionManagementUtility::addPageTSConfig(
"@import 'EXT:watchlist/Configuration/TSconfig/Page/Default.tsconfig'"
);
2022-09-29 08:41:44 +02:00
ExtensionUtility::registerTypeConverter(WatchlistTypeConverter::class);
ExtensionUtility::registerTypeConverter(ItemTypeConverter::class);
BeforeRenderingHook::register();
})();