$forms→formID()
Convert given value to form ID if is isn’t already
Usage
// basic usage
$int = $forms->formID($value);
// usage with all arguments
$int = $forms->formID($value, bool $throw = true);
Arguments
Name | Type(s) | Description |
---|---|---|
$value | int string FormBuilderForm | For example, a form name |
$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.251