Template::hasField()

Does this template have the given Field?

Usage

$bool = $template->hasField($name);

Arguments

NameType(s)Description
$namestring int Field

May be field name, id or object.

Return value

bool


Template methods and properties

API reference based on ProcessWire core version 3.0.251