Skip to content

Commit

Permalink
Use associated array keys when defining TCA field 'CType' items. (#3608)
Browse files Browse the repository at this point in the history
Avoid TCA Migration warning: "The TCA field 'CType' of table 'tt_content' uses the legacy way of defining 'items'. Please switch to associated array keys: label, value, icon, group, description."
  • Loading branch information
ghermens committed Oct 25, 2023
1 parent f52dca1 commit 9dac5d2
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
'CType',
[
// title
'LLL:EXT:my_extension/Resources/Private/Language/locallang.xlf:myextension_newcontentelement_title',
'label' => 'LLL:EXT:my_extension/Resources/Private/Language/locallang.xlf:myextension_newcontentelement_title',
// plugin signature: extkey_identifier
'myextension_newcontentelement',
'value' => 'myextension_newcontentelement',
// icon identifier
'content-text',
'icon' => 'content-text',
// group
'group' => 'common',
// description
'description' => 'LLL:EXT:my_extension/Resources/Private/Language/locallang.xlf:myextension_newcontentelement_description',
],
'textmedia',
'after'
Expand Down

0 comments on commit 9dac5d2

Please sign in to comment.