SilverStripe\ContentReview\Forms\ReviewContentHandler
Synopsis
class ReviewContentHandler
{
- // members
- protected Controller $controller;
- protected $name;
- // methods
- public void __construct()
- public Form Form()
- public HTTPResponse|string submitReview()
- public bool canSubmitReview()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $controller
—
SilverStripe\Control\Controller
Parent controller for this form - $name
—
string
Form name to use
Methods
public
- __construct()
- Form() — Bootstrap the form fields for the content review modal
- canSubmitReview() — Determine whether the user can submit a review
- submitReview() — Validate, and save the submitted form's review