WidgetInterface

interface \TYPO3\CMS\Dashboard\Widgets\WidgetInterface

The WidgetInterface is the base interface for all kind of widgets.

All widgets must implement this interface. It contains the methods which are required for all widgets.

Table of Contents

Methods

getOptions()  : array
This method returns the options of the widget as set in the registration.
renderWidgetContent()  : string
This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.

Methods

getOptions()

This method returns the options of the widget as set in the registration.

public getOptions() : array

Return values

array

renderWidgetContent()

This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.

public renderWidgetContent() : string

Be aware of XSS and ensure that the content is well encoded.

Return values

string
On this page