From 4adf1d9553fbd9f862ea265b9e6c05def6ee4de8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:28:23 +0200 Subject: [PATCH] [Backport 12.4] Use associated array keys when defining TCA field 'CType' 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 <47635467+ghermens@users.noreply.github.com> --- .../_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'