SysLogButtonProvider implements ButtonProviderInterface, ElementAttributesInterface

Provide link for sys log button.

Check whether belog is enabled and add link to module. No link is returned if not enabled.

Table of Contents

Interfaces

ButtonProviderInterface
In case a widget should have a button in the footer of the widget, this button must implement this interface.
ElementAttributesInterface
In case HTML element shall contain additional attributes

Methods

__construct()  : mixed
getElementAttributes()  : array<string, string|null>
getLink()  : string
Return the link
getTarget()  : string
Specify the target of the link like '_blank'
getTitle()  : string
This method should return the title that will be shown as the text on the button. As the title will be translated within the template, you can also return a localization string like 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:button'

Methods

__construct()

public __construct(string $title[, string $target = '' ]) : mixed
Parameters
$title : string
$target : string = ''

getElementAttributes()

public getElementAttributes() : array<string, string|null>
Return values
array<string, string|null>

Return the link

public getLink() : string
Return values
string

getTarget()

Specify the target of the link like '_blank'

public getTarget() : string
Return values
string

getTitle()

This method should return the title that will be shown as the text on the button. As the title will be translated within the template, you can also return a localization string like 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:button'

public getTitle() : string
Return values
string

        
On this page

Search results