PagesWithInternalNote implements WidgetRendererInterface
Table of Contents
Interfaces
- WidgetRendererInterface
- The WidgetRendererInterface is the (new) base interface for all kind of widgets.
Methods
- __construct() : mixed
- 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.
- getLanguageService() : LanguageService
- getWidgetLabel() : string
Methods
__construct()
public
__construct(WidgetConfigurationInterface $configuration, SysNoteRepository $sysNoteRepository, BackendViewFactory $backendViewFactory[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $configuration : WidgetConfigurationInterface
- $sysNoteRepository : SysNoteRepository
- $backendViewFactory : BackendViewFactory
- $options : array<string|int, mixed> = []
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
Return values
WidgetResultgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetWidgetLabel()
protected
getWidgetLabel(int|null $category) : string
Parameters
- $category : int|null