SilverStripe\ContentReview\Extensions\ContentReviewCMSExtension
CMSPageEditController extension to receive the additional action button from SiteTreeContentReview::updateCMSActions()
Synopsis
class ContentReviewCMSExtension
extends LeftAndMainExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public Form|null ReviewContentForm()
- public Form|null getReviewContentForm()
- public DBHTMLText|HTTPResponse|null savereview()
- protected ReviewContentHandler getReviewContentHandler()
- protected SiteTree findRecord()
- protected bool getSchemaRequested()
- protected HTTPResponse getSchemaResponse()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMainExtension
Tasks
Line | Task |
---|---|
134+ | Remove duplication. See https://github.com/silverstripe/silverstripe-admin/issues/240 |
151+ | Remove duplication. See https://github.com/silverstripe/silverstripe-admin/issues/240 |
Members
private
- $allowed_actions
Methods
protected
- findRecord() — Find the page this form is updating
- getReviewContentHandler() — Return a handler or reviewing content
- getSchemaRequested() — Check if the current request has a X-Formschema-Request header set.
- getSchemaResponse() — Generate schema for the given form based on the X-Formschema-Request header value
public
- ReviewContentForm() — URL handler for the "content due for review" form
- getReviewContentForm() — Return a handler for "content due for review" forms, according to the given object ID
- savereview() — Action handler for processing the submitted content review