From c8a63d3d1775d12d117efc21ddccb51488f5d0cc 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:30:41 +0200 Subject: [PATCH] Add the content element icon to TCA typeicon_classes (#3611) Co-authored-by: ghermens <47635467+ghermens@users.noreply.github.com> --- .../_AddingYourOwnContentElements/_tt_content.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php b/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php index 5c972d4366..50e3a9534d 100644 --- a/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php +++ b/Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content.php @@ -23,4 +23,7 @@ 'after' ); +// Adds the content element icon to TCA typeicon_classes +$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['myextension_newcontentelement'] = 'content-text'; + // ...