PagesWithInternalNote implements WidgetInterface, AdditionalCssInterface, RequestAwareWidgetInterface
Table of Contents
Interfaces
- WidgetInterface
- The WidgetInterface is the base interface for all kind of widgets.
- AdditionalCssInterface
- In case a widget should provide additional CSS files, the widget must implement this interface.
- RequestAwareWidgetInterface
- Interface for widgets that need the ServerRequestInterface Request.
Methods
- __construct() : mixed
- getCssFiles() : array<string|int, mixed>
- This method returns an array with paths to required CSS files.
- getOptions() : array<string|int, mixed>
- 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.
- setRequest() : void
- getBackendUser() : BackendUserAuthentication
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> = []
getCssFiles()
This method returns an array with paths to required CSS files.
public
getCssFiles() : array<string|int, mixed>
e.g. ['EXT:myext/Resources/Public/Css/my_widget.css']
Return values
array<string|int, mixed>getOptions()
This method returns the options of the widget as set in the registration.
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>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
stringsetRequest()
public
setRequest(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication