ButtonBarProvider
FinalYes
Event listener to add the sys_note button to the button bar
This is a specific listener implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $componentFactory : ComponentFactory
- $iconFactory : IconFactory
- $tcaSchemaFactory : TcaSchemaFactory
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- __invoke() : void
- Add a sys_note creation button to the button bar of defined modules
- canCreateNewRecord() : bool
- Check if the user is allowed to create a sys_note record
- getBackendUserAuthentication() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getRequest() : ServerRequestInterface
- isCreationAllowed() : bool
- Check if creation is allowed / denied in web_list via mod TSconfig
Properties
$componentFactory read-only
protected
ComponentFactory
$componentFactory
$iconFactory read-only
protected
IconFactory
$iconFactory
$tcaSchemaFactory read-only
protected
TcaSchemaFactory
$tcaSchemaFactory
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder, TcaSchemaFactory $tcaSchemaFactory, ComponentFactory $componentFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $tcaSchemaFactory : TcaSchemaFactory
- $componentFactory : ComponentFactory
__invoke()
Add a sys_note creation button to the button bar of defined modules
public
__invoke(ModifyButtonBarEvent $event) : void
Parameters
- $event : ModifyButtonBarEvent
Tags
Attributes
- #[AsEventListener]
- 'note-to-button-bar'
canCreateNewRecord()
Check if the user is allowed to create a sys_note record
protected
canCreateNewRecord(int $id) : bool
Parameters
- $id : int
Return values
boolgetBackendUserAuthentication()
protected
getBackendUserAuthentication() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetRequest()
protected
getRequest() : ServerRequestInterface
Return values
ServerRequestInterfaceisCreationAllowed()
Check if creation is allowed / denied in web_list via mod TSconfig
protected
isCreationAllowed(array<string|int, mixed> $modTSconfig) : bool
Parameters
- $modTSconfig : array<string|int, mixed>