[TASK] Use %currentWorkingDirectory% in phpstan config files
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_metadata.php
1 <?php
2
3 return [
4 'ctrl' => [
5 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata',
6 'label' => 'file',
7 'tstamp' => 'tstamp',
8 'crdate' => 'crdate',
9 'cruser_id' => 'cruser_id',
10 'type' => 'file:type',
11 'hideTable' => true,
12 'rootLevel' => 1,
13 'languageField' => 'sys_language_uid',
14 'transOrigPointerField' => 'l10n_parent',
15 'transOrigDiffSourceField' => 'l10n_diffsource',
16 'versioningWS' => true,
17 'origUid' => 't3_origuid',
18 'default_sortby' => 'crdate DESC',
19 'typeicon_classes' => [
20 'default' => 'mimetypes-other-other'
21 ],
22 'security' => [
23 'ignoreWebMountRestriction' => true,
24 'ignoreRootLevelRestriction' => true,
25 ],
26 'searchFields' => 'title,description,alternative'
27 ],
28 'columns' => [
29 'crdate' => [
30 'config' => [
31 'type' => 'passthrough',
32 ],
33 ],
34 'sys_language_uid' => [
35 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
36 'config' => [
37 'type' => 'language'
38 ]
39 ],
40 'l10n_parent' => [
41 'displayCond' => 'FIELD:sys_language_uid:>:0',
42 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
43 'config' => [
44 'type' => 'group',
45 'internal_type' => 'db',
46 'allowed' => 'sys_file_metadata',
47 'size' => 1,
48 'maxitems' => 1,
49 'minitems' => 0,
50 'default' => 0
51 ]
52 ],
53 'l10n_diffsource' => [
54 'config' => [
55 'type' => 'passthrough',
56 'default' => ''
57 ]
58 ],
59 'fileinfo' => [
60 'config' => [
61 'type' => 'none',
62 'renderType' => 'fileInfo',
63 ]
64 ],
65 'file' => [
66 'displayCond' => 'FIELD:sys_language_uid:=:0',
67 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file',
68 'config' => [
69 'readOnly' => true,
70 'type' => 'select',
71 'renderType' => 'selectSingle',
72 'foreign_table' => 'sys_file',
73 'foreign_table_where' => 'AND sys_file.uid = ###REC_FIELD_file###',
74 'minitems' => 1,
75 'maxitems' => 1,
76 'size' => 1,
77 'default' => 0,
78 ]
79 ],
80 'title' => [
81 'exclude' => true,
82 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.title',
83 'l10n_mode' => 'prefixLangTitle',
84 'config' => [
85 'type' => 'input',
86 'size' => 30,
87 'placeholder' => '__row|file|name'
88 ]
89 ],
90 'description' => [
91 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.description',
92 'l10n_mode' => 'prefixLangTitle',
93 'config' => [
94 'type' => 'text',
95 'cols' => 40,
96 'rows' => 3
97 ]
98 ],
99 'alternative' => [
100 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.alternative',
101 'description' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.alternative.description',
102 'l10n_mode' => 'prefixLangTitle',
103 'config' => [
104 'type' => 'input',
105 'size' => 30,
106 ]
107 ],
108 'width' => [
109 'l10n_mode' => 'exclude',
110 'l10n_display' => 'defaultAsReadonly',
111 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file.width',
112 'config' => [
113 'type' => 'input',
114 'size' => 10,
115 'max' => 20,
116 'eval' => 'int',
117 'default' => 0,
118 'readOnly' => true,
119 ],
120 ],
121 'height' => [
122 'l10n_mode' => 'exclude',
123 'l10n_display' => 'defaultAsReadonly',
124 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file.height',
125 'config' => [
126 'type' => 'input',
127 'size' => 10,
128 'max' => 20,
129 'eval' => 'int',
130 'default' => 0,
131 'readOnly' => true,
132 ],
133 ],
134 ],
135 'types' => [
136 '1' => ['showitem' => '
137 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
138 fileinfo, alternative, description, title, --palette--;;language,
139 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories,
140 categories,
141 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
142 ']
143 ],
144 'palettes' => [
145 'language' => [
146 'showitem' => 'sys_language_uid, l10n_parent',
147 'isHiddenPalette' => true,
148 ],
149 ]
150 ];