$formsformName()

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

NameType(s)Description
$valueint 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


$forms methods and properties

API reference based on ProcessWire core version 3.0.251