‪TYPO3CMS  11.5
TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider Class Reference
Inheritance diagram for TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider:
TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface

Public Member Functions

 __construct (string $title, string $link, string $target='')
 
 getTitle ()
 
 getLink ()
 
 getTarget ()
 

Private Attributes

string $title
 
string $target
 
string $link
 

Detailed Description

Provides a button for the footer of a widget

Definition at line 25 of file ButtonProvider.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::__construct ( string  $title,
string  $link,
string  $target = '' 
)

Member Function Documentation

◆ getLink()

TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::getLink ( )

Return the link

Returns
‪string

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 51 of file ButtonProvider.php.

References TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider\$link.

◆ getTarget()

TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::getTarget ( )

Specify the target of the link like '_blank'

Returns
‪string

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 56 of file ButtonProvider.php.

References TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider\$target.

◆ getTitle()

TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::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'

Returns
‪string

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 46 of file ButtonProvider.php.

References TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider\$title.

Member Data Documentation

◆ $link

string TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::$link
private

◆ $target

string TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::$target
private

◆ $title

string TYPO3\CMS\Dashboard\Widgets\Provider\ButtonProvider::$title
private