ButtonProvider implements ButtonProviderInterface

Provides a button for the footer of a widget

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.

Methods

__construct()  : mixed
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 $link[, string $target = '' ]) : mixed
Parameters
$title : string
$link : string
$target : string = ''

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