forked from TYPO3-Headless/headless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
24 lines (19 loc) · 706 Bytes
/
ext_tables.php
File metadata and controls
24 lines (19 loc) · 706 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
<?php
/*
* This file is part of the "headless" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FriendsOfTYPO3\Headless\Hooks\PreviewUrlHook;
use TYPO3\CMS\Core\Configuration\Features;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') || die();
call_user_func(
static function () {
$features = GeneralUtility::makeInstance(Features::class);
if ($features->isFeatureEnabled('headless.frontendUrls')) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['viewOnClickClass'][] = PreviewUrlHook::class;
}
}
);