typeicon_classes

typeicon_classes
Type
array
Path
$GLOBALS['TCA'][$table]['ctrl']
Scope
Display

Array of icon identifiers to use for the records. The keys must correspond to the values found in the column referenced in the typeicon_column property. The values correspond to icons registered in the Icon API. With the key default, a default icon is defined, which is used when no matching key is found. The default icon is also used in the "Create new record" dialog from the List module. For using and configuring typeicon_classes for custom page types, please see Create a new Page Type.

Examples

Example from the tt_content table:

'typeicon_classes' => [
   'default' => 'mimetypes-x-content-text',
   'header' => 'mimetypes-x-content-header',
   ...
],
Copied!