Field::getContext() method  
Get this field in context of a Page/Template
Available since version 3.0.162.
Usage
// basic usage
$field = $field->getContext($for);
// usage with all arguments
$field = $field->getContext($for, string $namespace = '', bool $has = false);Arguments
| Name | Type(s) | Description | 
|---|---|---|
$for | Page Template Fieldgroup string | Specify Page, Template, or template name string  | 
$namespace (optional) | string | Optional namespace (internal use)  | 
$has (optional) | bool | Return boolean rather than Field to check if context exists? Default:false  | 
Return value
Field bool
See Also
API reference based on ProcessWire core version 3.0.252