$formsgetFormNames()

Get names of all forms (indexed by form ID)

Available since version 0.4.0.

Usage

// basic usage
$array = $forms->getFormNames();

// usage with all arguments
$array = $forms->getFormNames(int $id = 0);

Arguments

NameType(s)Description
$id (optional)int

Optional form ID to get the name for only form having this ID Default:0

Return value

array string


$forms methods and properties

API reference based on ProcessWire core version 3.0.251