[TASK] Remove and streamline HMENU functionality
HMENU was hardened during v9 via deprecations of GMENU and making most of the properties protected. Therefore, code can now refactored more easily. - The method signatures for HMENU / TMENU are streamlined. - All leftover "RO" (RollOver) functionality is removed (Breaking RST is already done but left-over code was forgotten). - Several GeneralUtility::inList() checks are replaced with in_array() - Some minor strict types for some internal obvious methods - use json_encode() instead of serialize() for cache identifiers - resolve some very very nested if() statements - internal methods with "optional arguments" which are always called with all arguments, are built in a way that they are now non-optional. Resolves: #87907 Releases: master Change-Id: I80536b9b4dbc4609d38476c9ce48532fe71b73d0 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60244 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 1 addition, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 98 additions, 194 deletions.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php 8 additions, 9 deletions...tend/Classes/ContentObject/Menu/TextMenuContentObject.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php 11 additions, 47 deletions...Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php
Please register or sign in to comment