RestoreAction
class RestoreAction (View source)
Generic restore action to restore an archived item to draft
Methods
static array
restore(object $item)
Returns a message which notifies the user of a successful restoration and if anything has changed
static array
getRestoreMessage($originalItem, $restoredItem, bool $changedLocation = false)
Returns a message which notifies the user of a successful restoration and if anything has changed
static bool
shouldRestoreToRoot($record)
Determines whether this record can be restored to it's original location
Details
static array
restore(object $item)
Returns a message which notifies the user of a successful restoration and if anything has changed
static array
getRestoreMessage($originalItem, $restoredItem, bool $changedLocation = false)
Returns a message which notifies the user of a successful restoration and if anything has changed
static bool
shouldRestoreToRoot($record)
Determines whether this record can be restored to it's original location