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