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.

Methods

public
__construct(string $link, string $targetFragment)

No description

public
array
getHTMLFragments($gridField)

Place the link button in a

tag above the field

Details

__construct(string $link, string $targetFragment)

No description

Parameters

string $link

The URL link the button links out to.

string $targetFragment

The HTML fragment to write the button into

array getHTMLFragments($gridField)

Place the link button in a

tag above the field

Parameters

$gridField

Return Value

array