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