interface GridField_ActionMenuLink implements GridField_ActionMenuItem (View source)

Allows GridField_ActionMenuItem to act as a link

Methods

string
getTitle(GridField $gridField, DataObject $record, $columnName)

Gets the title for this menu item

array
getExtraData(GridField $gridField, DataObject $record, $columnName)

Gets any extra data that could go in to the schema that the menu generates

string|null
getGroup(GridField $gridField, DataObject $record, $columnName)

Gets the group this menu item will belong to. A null value should indicate the button should not display.

string
getUrl(GridField $gridField, DataObject $record, $columnName)

Gets the action url for this menu item

Details

string getTitle(GridField $gridField, DataObject $record, $columnName)

Gets the title for this menu item

Parameters

GridField $gridField
DataObject $record
$columnName

Return Value

string

$title

See also

{@link GridField_ActionMenu->getColumnContent()}

array getExtraData(GridField $gridField, DataObject $record, $columnName)

Gets any extra data that could go in to the schema that the menu generates

Parameters

GridField $gridField
DataObject $record
$columnName

Return Value

array

$data

See also

{@link GridField_ActionMenu->getColumnContent()}

string|null getGroup(GridField $gridField, DataObject $record, $columnName)

Gets the group this menu item will belong to. A null value should indicate the button should not display.

Parameters

GridField $gridField
DataObject $record
$columnName

Return Value

string|null

$group

See also

{@link GridField_ActionMenu->getColumnContent()}

string getUrl(GridField $gridField, DataObject $record, $columnName)

Gets the action url for this menu item

Parameters

GridField $gridField
DataObject $record
$columnName

Return Value

string

$url

See also

{@link GridField_ActionMenu->getColumnContent()}