Get all contexts this field is used in
Available since version 3.0.182.
Usage
$array = $field->getContexts();
Return value
array
Array of 'fieldgroup-name' => [ contexts ]
API reference based on ProcessWire core version 3.0.236
“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