SilverStripe\ContentReview\Forms\ReviewContentHandler::submitReview
Validate, and save the submitted form's review
Signature
public function submitReview(DataObject
$record,
array
$data )
Parameters
$record
— object
$data
— array
Returns
- HTTPResponse|string
Errors/Exceptions
-
ValidationException
- If the user cannot submit the review