mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
385e9e105c
* 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
22 lines
481 B
PHP
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);
|
|
}
|