LatestBeLoginsWidget implements WidgetRendererInterface, AdminOnlyWidgetInterface
Read onlyYes
This widget will show a list of recent backend user logins.
The list contains:
- backend user avatar and name
- login time
The following options are available during registration:
- limit
intnumber of logins to display
Table of Contents
Interfaces
- WidgetRendererInterface
- The WidgetRendererInterface is the (new) base interface for all kind of widgets.
- AdminOnlyWidgetInterface
- This interface should be used to describe a widget as restricted => it will not be able to assign to a user group
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
Methods
__construct()
public
__construct(BackendViewFactory $backendViewFactory, LatestBeLoginsDataProvider $dataProvider, ButtonProviderInterface $buttonProvider, WidgetConfigurationInterface $configuration) : mixed
Parameters
- $backendViewFactory : BackendViewFactory
- $dataProvider : LatestBeLoginsDataProvider
- $buttonProvider : ButtonProviderInterface
- $configuration : WidgetConfigurationInterface
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