DNADesign\Elemental\Forms\EditFormFactory
Synopsis
class EditFormFactory
extends DefaultFormFactory
{
- // constants
- const FIELD_NAMESPACE_TEMPLATE = 'PageElements_%d_%s';
- // members
- private static integer $html_field_rows = 7;
- // methods
- public void getForm()
- protected void getFormFields()
- protected void namespaceFields()
Hierarchy
Extends
- SilverStripe\Forms\DefaultFormFactory
Uses
- SilverStripe\Core\Config\Configurable
Constants
Name | Value |
---|---|
FIELD_NAMESPACE_TEMPLATE | 'PageElements_%d_%s' |
Members
private
- $html_field_rows
—
integer
This will be set the number of rows in HTML field
Methods
protected
- getFormFields()
- namespaceFields() — Given a {@link FieldList}, give all fields a unique name so they can be used in the same context as other elemental edit forms and the page (or other DataObject) that owns them.