SilverStripe\UserForms\Tests\Extension\UserFormBlockStub
A stand in for e.g. dnadesigned/silverstripe-elemental-userforms
Synopsis
class UserFormBlockStub
extends DataObject
implements
TestOnly
{
- // Inherited methods from UserForm
- public FieldList getCMSFields()
- public ArrayList FilteredEmailRecipients()
- public FieldList getFormOptions()
- public string getErrorContainerID()
- public void getCMSValidator()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Uses
Implements
- SilverStripe\Dev\TestOnly
Members
protected
- $fieldsFromTo
—
array
Temporary storage of field ids when the form is duplicated.
Methods
Inherited from SilverStripe\UserForms\UserForm
public
- FilteredEmailRecipients() — Allow overriding the EmailRecipients on a {@link DataExtension} so you can customise who receives an email.
- getCMSFields()
- getCMSValidator() — Validate formfields
- getErrorContainerID() — Get the HTML id of the error container displayed above the form.
- getFormOptions() — Custom options for the form. You can extend the built in options by using {@link updateFormOptions()}