---
title: "Breaking: #96222 - Add getOptions() to WidgetInterface"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-96222"
source: "Changelog/12.0/Breaking-96222-AddGetOptionsToWidgetInterface.rst"
typo3-version: "12.0"
typo3-major: 12
type: "breaking"
issue: 96222
forge: "https://forge.typo3.org/issues/96222"
tags: ["Backend", "PHP-API", "NotScanned", "ext:dashboard"]
rendered: "2026-10-08T12:25:00+00:00"
---

# Breaking: #96222 - Add getOptions() to WidgetInterface {#breaking-96222}

See [forge#96222](https://forge.typo3.org/issues/96222)

## Description {#description}

With [forge#93210](https://forge.typo3.org/issues/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.

## Impact {#impact}

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 {#affected-installations}

All installations using custom dashboard widgets.

## Migration {#migration}

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

```php
public function getOptions(): array
{
    return $this->options;
}
```
