InputfieldWrapper::getChildByName()

Given an Inputfield name, return the child Inputfield or NULL if not found.

This traverses all children recursively to find the requested Inputfield.

This is the same as the InputfieldWrapper::get() method except that it can only return Inputfield or null, and has no crossover with other settings, properties or API variables.

Usage

$inputfield = $inputfieldWrapper->getChildByName(string $name);

Arguments

NameType(s)Description
$namestring

Name of Inputfield

Return value

See Also


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.251