sabbelasichon / typo3-rector

Rector for TYPO3
MIT License
231 stars 63 forks source link

Feature: #94590 - Allow icon identifiers in report module registration #4417

Closed simonschaufi closed 3 weeks ago

simonschaufi commented 3 weeks ago

Feature: #94590 - Allow icon identifiers in report module registration

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-94590-AllowIconIdentifiersInReportModuleRegistration.html

Feature: #94590 - Allow icon identifiers in report module registration

See 94590

Description

To further streamline the usage of the Icon Registry, the reports registration array now allows to define icon identifiers for the icon key. Absolute paths and paths with EXT: prefix are still possible.

Example:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = [
    'title' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_title',
    'icon' => 'module-reports', // Icon identifiers are now possible here.
    'description' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_report_description',
    'report' => \TYPO3\CMS\Reports\Report\Status\Status::class
];

Impact

Developers are now able to provide icon identifiers in the reports module registration array.

Backend, PHP-API, ext:reports