WebbuildersGroup\SiteConfigErrorPages\Forms\GridField\ErrorPageItemRequestHandler
Synopsis
class ErrorPageItemRequestHandler
extends GridFieldDetailForm_ItemRequest
{
- // members
- private static array $allowed_actions = ;
- private static string $error_page_class = ErrorPage::class;
- // methods
- public Form ItemEditForm()
- public SS_HTTPResponse edit()
- public SS_HTTPResponse save()
- public HTTPResponse doSave()
- public HTTPResponse rollback()
- public SS_HTTPResponse archive()
- public SS_HTTPResponse publish()
- public SS_HTTPResponse unpublish()
- public SS_HTTPResponse doDuplicate()
- public void redirectBack()
- protected ArrayData getSilverStripeNavigator()
- public string LinkPreview()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest
Tasks
Line | Task |
---|---|
170 | Coupling to SiteTree |
Members
private
- $allowed_actions
- $error_page_class
—
string
Class to use when creating an error page
Methods
protected
public
- ItemEditForm() — Gets the form used for editing the error page
- LinkPreview() — Gets the preview link
- archive() — Deletes this page from both live and stage
- doDuplicate() — Handles duplicating an error page
- doSave() — Save and Publish page handler
- edit() — Handles request to edit the error page, if we're creating a new error page it is saved then redirected to editing that error page
- publish() — Handles publishing the error page
- redirectBack() — Wrapper to redirect back
- rollback() — Processes reverting staging to match the live site
- save() — Handles saving the submission
- unpublish() — Handles unpublishing the error page