‪TYPO3CMS  10.4
tx_testdatahandler_element.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'DataHandler Test Element',
6  'label' => 'title',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'cruser_id' => 'cruser_id',
10  'languageField' => 'sys_language_uid',
11  'transOrigPointerField' => 'l10n_parent',
12  'transOrigDiffSourceField' => 'l10n_diffsource',
13  'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
14  'sortby' => 'sorting',
15  'delete' => 'deleted',
16  'enablecolumns' => [
17  'disabled' => 'hidden',
18  ],
19  'versioningWS' => true,
20  'origUid' => 't3_origuid',
21  ],
22  'columns' => [
23  'sys_language_uid' => [
24  'exclude' => true,
25  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
26  'config' => [
27  'type' => 'select',
28  'renderType' => 'selectSingle',
29  'foreign_table' => 'sys_language',
30  'items' => [
31  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
32  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
33  ],
34  'default' => 0
35  ]
36  ],
37  'l10n_parent' => [
38  'displayCond' => 'FIELD:sys_language_uid:>:0',
39  'exclude' => 1,
40  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
41  'config' => [
42  'type' => 'select',
43  'renderType' => 'selectSingle',
44  'items' => [
45  ['', 0],
46  ],
47  'foreign_table' => 'tx_irretutorial_1nff_hotel',
48  'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
49  'default' => 0
50  ]
51  ],
52  'l10n_diffsource' => [
53  'config' => [
54  'type' => 'passthrough',
55  'default' => ''
56  ]
57  ],
58  'hidden' => [
59  'exclude' => true,
60  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
61  'config' => [
62  'type' => 'check',
63  'default' => 0
64  ]
65  ],
66  'title' => [
67  'exclude' => true,
68  'l10n_mode' => 'prefixLangTitle',
69  'label' => 'Title',
70  'config' => [
71  'type' => 'input',
72  'size' => 30,
73  'eval' => 'required',
74  ]
75  ],
76  ],
77  'types' => [
78  '0' => [
79  'showitem' =>
80  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title,' .
81  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l10n_parent, l10n_diffsource, hidden'
82  ]
83  ],
84  'palettes' => [
85  '1' => [
86  'showitem' => ''
87  ]
88  ]
89 ];