diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97454-RemoveLinkBrowserHooks.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97454-RemoveLinkBrowserHooks.rst index 3b01c8cbfc17b3b4d7c03d1b8c07cfef6e6f15b7..ff94c8d4dd42a236e0f3f8bb4cfbedd0628026e1 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97454-RemoveLinkBrowserHooks.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97454-RemoveLinkBrowserHooks.rst @@ -1,5 +1,7 @@ .. include:: /Includes.rst.txt +.. _breaking-97454-1657327622: + ============================================= Breaking: #97454 - Removed Link Browser hooks ============================================= @@ -9,10 +11,18 @@ See :issue:`97454` Description =========== -The hooks array :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['LinkBrowser']['hooks']` has been -removed in favor of new PSR-14 Events :php:`\TYPO3\CMS\Recordlist\Event\ModifyLinkHandlersEvent` +The hook :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['LinkBrowser']['hooks']` +with its two functions :php:`modifyLinkHandlers()` and +:php:`modifyAllowedItems()` has been removed in favor of two new PSR-14 Events +:php:`\TYPO3\CMS\Recordlist\Event\ModifyLinkHandlersEvent` and :php:`\TYPO3\CMS\Recordlist\Event\ModifyAllowedItemsEvent`. +.. seealso:: + * :ref:`feature-97454-1657327622` + * :ref:`t3coreapi:modifyLinkHandlers` + * :ref:`t3coreapi:ModifyLinkHandlersEvent` + * :ref:`t3coreapi:ModifyAllowedItemsEvent` + Impact ====== diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97454-PSR14EventsForLinkBrowserLifecycle.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97454-PSR14EventsForLinkBrowserLifecycle.rst index 1e0fdddc3bc2f11927778c411f86d06c952c9326..53c8f022d586344a7cd899092bd1c3470457f3a1 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97454-PSR14EventsForLinkBrowserLifecycle.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-97454-PSR14EventsForLinkBrowserLifecycle.rst @@ -1,5 +1,7 @@ .. include:: /Includes.rst.txt +.. _feature-97454-1657327622: + =================================================================== Feature: #97454 - PSR-14 Events for modifying link browser behavior =================================================================== @@ -11,11 +13,24 @@ Description Two new PSR-14 Events :php:`\TYPO3\CMS\Recordlist\Event\ModifyLinkHandlersEvent` and :php:`\TYPO3\CMS\Recordlist\Event\ModifyAllowedItemsEvent` have been introduced which -serves as a direct replacement for the now removed -:php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['LinkBrowser']['hooks']` array. +serve as a direct replacement for the now removed +:php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['LinkBrowser']['hooks']` :doc:`hooks <../12.0/Breaking-97454-RemoveLinkBrowserHooks>`. -The first is triggered before link handlers are executed, allowing listeners -to modify the set of handlers that will be used. The second + +The :php:`ModifyLinkHandlersEvent` is triggered before link handlers are +executed, allowing listeners to modify the set of handlers that will be used. +It is the direct replacement for the method :php:`modifyLinkHandlers()` in the +LinkBrowser hook. + +The :php:`ModifyAllowedItemsEvent` can be used to dynamically modify the +allowed link types. It is the direct replacement for the method :php:`modifyAllowedItems()` +in the LinkBrowser hook. + +.. seealso:: + * :ref:`breaking-97454-1657327622` + * :ref:`t3coreapi:modifyLinkHandlers` + * :ref:`t3coreapi:ModifyLinkHandlersEvent` + * :ref:`t3coreapi:ModifyAllowedItemsEvent` Example