WireData::getDot() method

Get a property via dot syntax: field.subfield.subfield

Some classes descending WireData may choose to add a call to this as part of their get() method as a syntax convenience.

Example

$value = $item->get("parent.title"); 

Usage

$mixed = $wireData->getDot(string $key);

Arguments

NameType(s)Description
keystring

Name of property you want to retrieve in "a.b" or "a.b.c" format

Return value

null mixed

Returns value if found or null if not


WireData methods and properties

API reference based on ProcessWire core version 3.0.244

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK