-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
31 lines (22 loc) · 1.04 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_MODE') || die('Access denied.');
use Ressourcenmangel\Rsmoembed\Hooks\GetOembedDataHook;
call_user_func(
function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']
[GetOembedDataHook::class] = GetOembedDataHook::class;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rsmoembed/Configuration/TsConfig/All.tsconfig">'
);
// Register a node in ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][16753462650] = [
'nodeName' => 'RsmOembedData',
'priority' => 50,
'class' => \Ressourcenmangel\Rsmoembed\Form\Element\RsmOembedData::class,
];
// autoload Embed
$composerAutoloadFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('rsmoembed')
. 'Resources/Private/PHP/embed/vendor/autoload.php';
require_once($composerAutoloadFile);
}
);