[TASK] Add IconUtility::getSpriteIconForResource()
With the introduction of FAL the files and folders are objects and so there is more info than just a name/extension to determine the right icon. And with file_metadata you have the possibility to even add more info to a file (access rights etc). This patch adds a new method to the IconUtility API for generating the sprite icon for a resource. There is also a hook where other extensions can hook in and change the icon, options and overlays. Furthermore, all calls in the core are changed to IconUtility::getSpriteIconForFile where a File or Folder object was available. Resolves: #56211 Documentation: #56412 Releases: 6.2 Change-Id: Ifae61dd65d690fffd90c66568e2647ebd403bce5 Reviewed-on: https://review.typo3.org/27790 Reviewed-by: Steffen Ritter Tested-by: Steffen Ritter Reviewed-by: Markus Klein Reviewed-by: Stefan Froemken Tested-by: Stefan Froemken Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters
Showing
- typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Clipboard/Clipboard.php
- typo3/sysext/backend/Classes/Form/FormEngine.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Form/FormEngine.php
- typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php 2 additions, 23 deletionstypo3/sysext/backend/Classes/Tree/View/FolderTreeView.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Classes/Utility/IconUtility.php 83 additions, 4 deletionstypo3/sysext/backend/Classes/Utility/IconUtility.php
- typo3/sysext/backend/Classes/Utility/IconUtilityOverrideResourceIconHookInterface.php 48 additions, 0 deletions.../Utility/IconUtilityOverrideResourceIconHookInterface.php
- typo3/sysext/backend/Tests/Unit/Utility/IconUtilityTest.php 159 additions, 0 deletionstypo3/sysext/backend/Tests/Unit/Utility/IconUtilityTest.php
- typo3/sysext/filelist/Classes/FileList.php 14 additions, 17 deletionstypo3/sysext/filelist/Classes/FileList.php
- typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php 5 additions, 5 deletionstypo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
Please register or sign in to comment