public function ResourceTypeField::isFieldEnabled in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()
- 10 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()
Whether the field is enabled.
Return value
bool Whether the field is enabled. FALSE if the field should not be in the JSON:API response.
File
- core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeField.php, line 115
Class
- ResourceTypeField
- Abstract value object containing all metadata for a JSON:API resource field.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function isFieldEnabled() {
return $this->enabled;
}