function ResourceTypeField::isFieldEnabled
Same name in other branches
- 8.9.x 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()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.