-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathext_localconf.php
More file actions
29 lines (22 loc) · 984 Bytes
/
Copy pathext_localconf.php
File metadata and controls
29 lines (22 loc) · 984 Bytes
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
<?php
/** @noinspection PhpFullyQualifiedNameUsageInspection */
/** @noinspection PhpMissingStrictTypesDeclarationInspection */
defined('TYPO3') or die();
$bootMediaoembed = function () {
// @extensionScannerIgnoreLine - False positive
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Mediaoembed',
'OembedMediaRenderer',
/** @uses \Sto\Mediaoembed\Controller\OembedController::renderMediaAction() */
[\Sto\Mediaoembed\Controller\OembedController::class => 'renderMedia'],
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][\Sto\Mediaoembed\Backend\AspectRatioEvaluation::class]
= '';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry']['tx_mediaoembed_urlinput'] = [
'nodeName' => 'tx_mediaoembed_urlinput',
'class' => \Sto\Mediaoembed\Backend\Form\MediaUrlInputElement::class,
'priority' => 50,
];
};
$bootMediaoembed();
unset($bootMediaoembed);