-
Notifications
You must be signed in to change notification settings - Fork 42
/
ext_localconf.php
31 lines (27 loc) · 1.25 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
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
// Add typolink handler for "record" links
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['record'] = \Cobweb\Linkhandler\TypolinkHandler::class;
// Register signal slots
/** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Core\Database\SoftReferenceIndex::class,
'getTypoLinkParts',
\Cobweb\Linkhandler\SoftReferenceHandler::class,
'getTypoLinkParts',
false
);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Core\Database\SoftReferenceIndex::class,
'setTypoLinkPartsElement',
\Cobweb\Linkhandler\SoftReferenceHandler::class,
'setTypoLinkPartsElement',
false
);
// Register linkvalidator custom type
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['tx_linkhandler'] = \Cobweb\Linkhandler\Linkvalidator\LinkhandlerLinkType::class;
// Register migration controller
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \Cobweb\Linkhandler\Command\LinkMigrationCommandController::class;