Skip to content
Snippets Groups Projects
Commit 6b0ede27 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[!!!][FEATURE] Add PSR-14 AfterPageTreeItemsPreparedEvent

The new PSR-14 AfterPageTreeItemsPreparedEvent is added.
The Event gets dispatched in the TreeController and allows
to further modify the resolved and already prepared page
tree items before being returned.

The new event is directly used by EXT:workspaces to apply
the highlighting of versioned pages. Using this new event
allows to remove another cross dependency of EXT:backend.

Additionally, the hooks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Workspaces\Service\WorkspaceService']['hasPageRecordVersions']
and $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Workspaces\Service\WorkspaceService']['fetchPagesWithVersionsInTable']
are now removed, since this can now be done using the
new PSR-14 Event.

Resolves: #97945
Releases: main
Change-Id: I2fa8df42f1820c9d6592d5a0654de9ada050e71c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75184


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent b2da9dee
Branches
Tags
No related merge requests found
Showing
with 511 additions and 65 deletions
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