Skip to content

Commit

Permalink
[Backport 12.4] Use associated array keys when defining TCA field 'CT…
Browse files Browse the repository at this point in the history
…ype' items. (#3610)

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."

---------

Co-authored-by: ghermens <[email protected]>
  • Loading branch information
github-actions[bot] and ghermens authored Oct 25, 2023
1 parent 979dc5c commit 4adf1d9
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 4adf1d9

Please sign in to comment.