InputfieldWrapper::getChildByName() method

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.244

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull