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

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits