DNADesign\Elemental\Controllers\ElementalAreaController
Controller for "ElementalArea" - handles loading and saving of in-line edit forms in an elemental area in admin
Synopsis
class ElementalAreaController
extends CMSMain
{
- // constants
- const FORM_NAME_TEMPLATE = 'ElementForm_%s';
- // members
- private static string $url_segment = 'elemental-area';
- private static boolean $ignore_menuitem = true;
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public void getClientConfig()
- public Form elementForm()
- public Form|null getElementForm()
- public HTTPResponse|null apiSaveForm()
- public RequestHandler|string formAction()
- public static array removeNamespacesFromFields()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\CMSMain
Constants
Name | Value |
---|---|
FORM_NAME_TEMPLATE | 'ElementForm_%s' |
Members
private
- $allowed_actions
- $url_handlers
- $url_segment
Methods
public
- apiSaveForm() — Save an inline edit form for a block
- elementForm()
- formAction() — Provides action control for form fields that are request handlers when they're used in an in-line edit form.
- getClientConfig()
- getElementForm()
- removeNamespacesFromFields() — Remove the pseudo namespaces that were added to form fields by the form factory