WidgetRendererInterface
The WidgetRendererInterface is the (new) base interface for all kind of widgets.
All widgets should implement this interface. (but can also implement WidgetInterface for the time being) It contains the methods which are required for all widgets.
Table of Contents
Methods
- getSettingsDefinitions() : array<string|int, SettingDefinition>
- renderWidget() : WidgetResult
- This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.
Methods
getSettingsDefinitions()
public
getSettingsDefinitions() : array<string|int, SettingDefinition>
Return values
array<string|int, SettingDefinition>renderWidget()
This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.
public
renderWidget(WidgetContext $context) : WidgetResult
Be aware of XSS and ensure that the content is well encoded.
Parameters
- $context : WidgetContext