Skip to content

Commit 01d224d

Browse files
Refactor image column configuration in _image_tca.php
1 parent 3101c97 commit 01d224d

File tree

1 file changed

+11
-9
lines changed
  • Documentation/ExtensionArchitecture/Tutorials/Tea/_Model

1 file changed

+11
-9
lines changed

Documentation/ExtensionArchitecture/Tutorials/Tea/_Model/_image_tca.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
'columns' => [
66
'image' => [
77
'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_tea.image',
8-
'type' => 'file',
9-
'maxitems' => 1,
10-
'appearance' => [
11-
'collapseAll' => true,
12-
'useSortable' => false,
13-
'enabledControls' => [
14-
'hide' => false,
8+
'config' => [
9+
'type' => 'file',
10+
'maxitems' => 1,
11+
'appearance' => [
12+
'collapseAll' => true,
13+
'useSortable' => false,
14+
'enabledControls' => [
15+
'hide' => false,
16+
],
1517
],
16-
],
17-
'allowed' => 'common-image-types',
18+
'allowed' => 'common-image-types',
19+
]
1820
],
1921
],
2022
];

0 commit comments

Comments
 (0)