$formsformID()

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

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


$forms methods and properties

API reference based on ProcessWire core version 3.0.251