-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
38 lines (32 loc) · 1.26 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
32
33
34
35
36
37
38
<?php
/*
* This file is part of the package bk2k/syntax.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use BK2K\Syntax\Form\DataProvider\CodeEditorFormatDataProvider;
use TYPO3\CMS\Backend\Form\FormDataProvider\EvaluateDisplayConditions;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsOverrides;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
defined('TYPO3') or die('Access denied.');
// PageTS
ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:syntax/Configuration/TsConfig/Page/All.tsconfig">'
);
// Register Icon
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'content-element-syntax',
SvgIconProvider::class,
['source' => 'EXT:syntax/Resources/Public/Icons/ContentElements/content-element-syntax.svg']
);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][CodeEditorFormatDataProvider::class] = [
'depends' => [
TcaColumnsOverrides::class,
EvaluateDisplayConditions::class,
],
];