Skip to content
Snippets Groups Projects
Commit 86834cb1 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[FEATURE] Introduce ModifyClearCacheActionsEvent

A new PSR-14 based event "ModifyClearCacheActionsEvent"
is introduced in favour of the existing
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']
hook, which is now marked as deprecated, along with
its interface "ClearCacheActionsHookInterface".

The new event features the same functionality as
the hook. Additionally a new convenience method
`add` is available for the class properties, allowing
extension authors to add their custom actions more
easily. This might be the most common use case for
using this event.

Resolves: #95083
Releases: master
Change-Id: I1e621a00b04cdf43978a6e982b66c397e9437a29
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70870


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 412df9f4
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment