Skip to content
Snippets Groups Projects
Commit 6a07b918 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Benni Mack
Browse files

[FEATURE] Introduce associative array keys for TCA items

The TCA types select, radio and check now have associative array keys
for their items array.

The mapping is as following:

0 => 'label' (select, radio, check)
1 => 'value' (select, radio)
2 => 'icon' (select)
3 => 'group' (select)
4 => 'description' (select; renderType=selectCheckBox)

This change eases the introduction of new functionality to the items
array in the future and provides a vastly improved code readability.

Resolves: #99739
Releases: main
Change-Id: Id0586bc8f8e1e0624eed5925be645e7b39692469
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77626


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 39eb6ac7
Branches
Tags
Showing
with 150 additions and 140 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment