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