Review main Ready for review Orphaned

93055[FEATURE] Pass WidgetContext to dashboard EventData

Stefan Froemken CR 0 V 0 Normal +104 −4 updated 03/04/26, 09:17

Commit message

With the introduction of configurable dashboard widgets in
TYPO3 v14, widget settings can now be persisted. While these
settings are currently accessible via internal object state
(e.g. $this->configuration), this approach hinders the goal
of making widget rendering more stateless.

To provide a cleaner API, a new interface
EventDataWithWidgetContextInterface is introduced. This allows
the getEventData() method to receive the WidgetContext directly
as an argument, providing immediate access to the persisted
configuration without relying on internal properties.

The DashboardEntry class is updated to detect this new
interface and provide the context if available. This change
is a step towards reducing internal state in dashboard widgets
and simplifies future refactorings.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/55/93055/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/55/93055/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 4

Review log 24

  1. Stefan Froemken uploaded patch set 1 03/04/26, 08:47

  2. core-ci voted on patch set 1 V +1 03/04/26, 08:58 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97277

  3. Stefan Froemken updated the commit message in patch set 2 V +1 03/04/26, 09:05

  4. core-ci voted on patch set 2 V +1 03/04/26, 09:17 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97280