[TASK] Avoid using hook for context menu settings
It's possible to assign additional attributes to context menu items. Those attributes are then available in the corresponding JavaScript callback method. Therefore, there is no need to add settings, only used in the callback methods, globally via BackendController hooks. This patch removes such hook usages from EXT:filelist and EXT:impexp, while adding the corresponding settings as attributes to the context menu items. Resolves: #95131 Releases: master Change-Id: I4972fb93a6c0007e19b848be1659553008f2c5ec Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70914 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Jochen <rothjochen@gmail.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Jochen <rothjochen@gmail.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/Sources/TypeScript/filelist/Resources/Public/TypeScript/ContextMenuActions.ts 10 additions, 6 deletions...ilelist/Resources/Public/TypeScript/ContextMenuActions.ts
- Build/Sources/TypeScript/impexp/Resources/Public/TypeScript/ContextMenuActions.ts 7 additions, 5 deletions.../impexp/Resources/Public/TypeScript/ContextMenuActions.ts
- typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php 20 additions, 5 deletions...lelist/Classes/ContextMenu/ItemProviders/FileProvider.php
- typo3/sysext/filelist/Classes/Hook/BackendControllerHook.php 0 additions, 45 deletionstypo3/sysext/filelist/Classes/Hook/BackendControllerHook.php
- typo3/sysext/filelist/Resources/Public/JavaScript/ContextMenuActions.js 1 addition, 1 deletion...ilelist/Resources/Public/JavaScript/ContextMenuActions.js
- typo3/sysext/filelist/ext_localconf.php 0 additions, 1 deletiontypo3/sysext/filelist/ext_localconf.php
- typo3/sysext/impexp/Classes/ContextMenu/ItemProvider.php 18 additions, 1 deletiontypo3/sysext/impexp/Classes/ContextMenu/ItemProvider.php
- typo3/sysext/impexp/Classes/Hook/BackendControllerHook.php 0 additions, 45 deletionstypo3/sysext/impexp/Classes/Hook/BackendControllerHook.php
- typo3/sysext/impexp/Resources/Public/JavaScript/ContextMenuActions.js 1 addition, 1 deletion.../impexp/Resources/Public/JavaScript/ContextMenuActions.js
- typo3/sysext/impexp/ext_localconf.php 0 additions, 1 deletiontypo3/sysext/impexp/ext_localconf.php
Please register or sign in to comment