Breaking: #96222 - Add getOptions() to WidgetInterface

See forge#96222


With forge#93210 the dashboard was extended for the functionality to refresh single widgets. This also required to extend the WidgetInterface. To stick to TYPO3's backwards compatibility promise, the new method was commented out and instead a methodExists() check performed.

This now has changed. The check is removed and the WidgetInterface now forces the presence of the getOptions() method in all widgets.


All dashboard widgets are now forced to implement the getOptions() method, returning the widget options. Otherwise this will cause a PHP fatal error.

Affected Installations

All installations using custom dashboard widgets.


Add the getOptions() method to all of your custom widget classes.

public function getOptions(): array
    return $this->options;