Breaking: #96222 - Add getOptions() to WidgetInterface
See forge#96222
Description
With forge#93210 the dashboard was extended for the functionality to
refresh single widgets. This also required to extend the Widget
.
To stick to TYPO3's backwards compatibility promise, the new method was
commented out and instead a method
check performed.
This now has changed. The check is removed and the Widget
now forces the presence of the get
method in all widgets.
Impact
All dashboard widgets are now forced to implement the get
method, returning the widget options. Otherwise this will cause a PHP
fatal error.
Affected Installations
All installations using custom dashboard widgets.
Migration
Add the get
method to all of your custom widget classes.
public function getOptions(): array
{
return $this->options;
}