‪TYPO3CMS  ‪main
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 (private readonly string $title, private readonly string $link, private readonly string $target='')
 
 getTitle ()
 
 getLink ()
 
 getTarget ()
 

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 ( private readonly string  $title,
private readonly string  $link,
private readonly string  $target = '' 
)

Definition at line 27 of file ButtonProvider.php.

Member Function Documentation

◆ getLink()

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

Return the link

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 38 of file ButtonProvider.php.

◆ getTarget()

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

Specify the target of the link like '_blank'

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 43 of file ButtonProvider.php.

◆ 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'

Implements TYPO3\CMS\Dashboard\Widgets\ButtonProviderInterface.

Definition at line 33 of file ButtonProvider.php.