public function ConfigurableResourceType::isFieldEnabled in JSON:API Extras 8.2
Same name and namespace in other branches
- 8 src/ResourceType/ConfigurableResourceType.php \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceType::isFieldEnabled()
@todo Remove this when JSON API Extras drops support for JSON API 1.x.
Overrides ResourceType::isFieldEnabled
File
- src/
ResourceType/ ConfigurableResourceType.php, line 94
Class
- ConfigurableResourceType
- Defines a configurable resource type.
Namespace
Drupal\jsonapi_extras\ResourceTypeCode
public function isFieldEnabled($field_name) {
$resource_field = $this
->getResourceFieldConfiguration($field_name);
return $resource_field ? empty($resource_field['disabled']) : parent::isFieldEnabled($field_name);
}