Convert given value to form ID if is isn’t already
Usage
// basic usage
$int = $formBuilderMain->formID($formID);
// usage with all arguments
$int = $formBuilderMain->formID($formID, bool $throw = true);
Arguments
Name | Type(s) | Description |
---|---|---|
formID | int, string, FormBuilderForm, InputfieldForm | |
throw (optional) | bool | Throw exception if cannot resolve to form ID or does not exist? (default=true) |
Return value
int
FormBuilderMain methods and properties
API reference based on ProcessWire core version 3.0.236