-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_tables.php
55 lines (50 loc) · 1.96 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_devlog_domain_model_entry');
// Add context sensitive help (csh) to the devlog table
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_devlog_domain_model_entry',
'EXT:devlog/Resources/Private/Language/locallang_csh_txdevlog.xlf'
);
// Load the module only in the BE context
if (TYPO3_MODE === 'BE') {
// Register the "Data Import" backend module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Devlog.Devlog',
// Make it a submodule of 'ExternalImport'
'system',
// Submodule key
'devlog',
// Position
'after:BelogLog',
array(
// An array holding the controller-action-combinations that are accessible
'ListModule' => 'index,delete'
),
array(
'access' => 'admin',
'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/ModuleIcon.svg',
'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/Module.xlf'
)
);
}
// Register test plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'TestPlugin',
'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:test_plugin',
'EXT:' . $_EXTKEY . '/Resources/Public/Images/ModuleIcon.svg'
);
// Register sprite icons for loading spinner
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'tx_devlog-loader',
\TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider::class,
[
'name' => 'spinner',
'spinning' => true
]
);