Field::hasContext() method  
Does this field have context settings for given Page/Template?
Available since version 3.0.163.
Usage
// basic usage
$field = $field->hasContext($for);
// usage with all arguments
$field = $field->hasContext($for, string $namespace = '');Arguments
| Name | Type(s) | Description | 
|---|---|---|
$for | Page Template Fieldgroup string | Specify Page, Template, or template name string  | 
$namespace (optional) | string | Optional namespace (internal use)  | 
Return value
Field bool
See Also
API reference based on ProcessWire core version 3.0.252