SilverStripe\VersionedAdmin\Extensions\ArchiveRestoreAction
Adds a restore action to the item edit form of ArchiveAdmin
Synopsis
class ArchiveRestoreAction
extends DataExtension
{
- // methods
- public mixed updateItemEditForm()
- protected bool shouldDisplayAction()
- public HTTPResponse doRestore()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
protected
- shouldDisplayAction() — Returns whether the restore action should be displayed
public
- doRestore() — Restore the record to its original place or top level if that's not possible
- updateItemEditForm() — Updates the edit form with a restore button if it is being viewed