Review main Merged Breaking

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

Oli Bartsch CR +2 V +2 Hard +511 −65 updated 07/15/22, 21:34

Commit message

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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 12