class GridFieldLinkButton implements GridField_HTMLProvider (View source)

A button that contains a link to an URL.

Properties

protected string $targetFragment

Fragment to write the button to.

string $link

URL link the button links out to.

protected string $caption

Caption text for the button to show

Methods

public
__construct(string $link, $caption, string $targetFragment)

No description

public
array
getHTMLFragments(GridField $gridField)

Place the link button in a

tag above the field

Details

__construct(string $link, $caption, string $targetFragment)

No description

Parameters

string $link

The URL link the button links out to.

$caption
string $targetFragment

The HTML fragment to write the button into

array getHTMLFragments(GridField $gridField)

Place the link button in a

tag above the field

Parameters

GridField $gridField

Return Value

array