silverstripe-framework/src/Forms/GridField/GridField_ActionMenuLink.php
Luke Edwards 385e9e105c Create GridField Actions Menu component (#8083)
* WIP GridField action menu work, the gist of the idea is using a new gridfield component

* Add delete action to actions menu

* Actions are added automatically to action menu (allows for extension)

* Add test and minor changes

* Add docs and minor changes

* Refactor ActionMenuItem into distinct types, general ActionMenu cleanup

* Add icons and fix title

* Pass columnName, so it can be used by components

* Update test to open and find action menu buttons

* Add section in changelog upgrade section for GridField_ActionMenu
2018-05-29 16:10:52 +12:00

22 lines
481 B
PHP

<?php
namespace SilverStripe\Forms\GridField;
/**
* Allows GridField_ActionMenuItem to act as a link
*/
interface GridField_ActionMenuLink extends GridField_ActionMenuItem
{
/**
* Gets the action url for this menu item
*
* @see {@link GridField_ActionMenu->getColumnContent()}
*
* @param GridField $gridField
* @param DataObject $record
*
* @return string $url
*/
public function getUrl($gridField, $record, $columnName);
}