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

Latest news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer