-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathext_tables.php
35 lines (31 loc) · 1.33 KB
/
ext_tables.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
<?php
defined('TYPO3_MODE') or die();
call_user_func(
function () {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_pxaformenhancement_domain_model_form',
'EXT:pxa_form_enhancement/Resources/Private/Language/locallang_csh_tx_pxaformenhancement_domain_model_form.xlf'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages(
'tx_pxaformenhancement_domain_model_form'
);
if (TYPO3_MODE === 'BE') {
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$icons = [
'ext-pxaformenhancement-finisher-icon' => 'save.svg',
'ext-pxaformenhancement-letter-icon' => 'letter.svg',
'ext-pxaformenhancement-recaptcha-icon' => 'recaptcha.svg'
];
foreach ($icons as $key => $icon) {
$iconRegistry->registerIcon(
$key,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:pxa_form_enhancement/Resources/Public/Icons/' . $icon]
);
}
}
}
);