mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
APICHANG: if a DataObject has getCMSActions, its model admin should be able to add them.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66392 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9d1be81b41
commit
92e7071412
@ -1557,6 +1557,19 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP
|
||||
return $tabbedFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* need to be overload by solid dataobject, so that the customised actions of that dataobject,
|
||||
* including that dataobject's decorator customised actions could be added to the EditForm.
|
||||
*
|
||||
* @return an Empty FieldSet(); need to be overload by solid subclass
|
||||
*/
|
||||
public function getCMSActions() {
|
||||
$actions = new FieldSet();
|
||||
$this->extend('updateCMSActions', $actions);
|
||||
return $actions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used for simple frontend forms without relation editing
|
||||
* or {@link TabSet} behaviour. Uses {@link scaffoldFormFields()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user