From 9dac5d26a70a2d3ec56d8af19241c0742c44384a Mon Sep 17 00:00:00 2001 From: ghermens <47635467+ghermens@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:27:49 +0200 Subject: [PATCH] Use associated array keys when defining TCA field 'CType' items. (#3608) 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." --- .../_AddingYourOwnContentElements/_tt_content.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php b/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php index 40e698b821..5c972d4366 100644 --- a/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php +++ b/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php @@ -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'