SilverStripe\Versioned\RestoreAction::restore
Returns a message which notifies the user of a successful restoration and if anything has changed
Signature
public function restore(Object
$item )
Parameters
$item
— object
Returns
- array
- $message
Errors/Exceptions
-
ValidationException
- if the record cannot be restored