InputfieldWrapper::getAll() method

Get all Inputfields below this recursively in a flat InputfieldWrapper (children, and their children, etc.)

Note that all InputfieldWrapper instances are removed as a result (except for the containing InputfieldWrapper).

Usage

// basic usage
$items = $inputfieldWrapper->getAll();

// usage with all arguments
$items = $inputfieldWrapper->getAll(array $options = []);

Arguments

NameType(s)Description
options (optional)array

Options to modify behavior (3.0.169+)

  • withWrappers (bool): Also include InputfieldWrapper objects? (default=false) 3.0.169+

Return value


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.236

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer