public function ResourceObject::getFields in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getFields()
- 9 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getFields()
Gets the ResourceObject's fields.
Return value
array The resource object's fields, keyed by public field name.
See also
::extractFields()
File
- core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceObject.php, line 168
Class
- ResourceObject
- Represents a JSON:API resource object.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getFields() {
return $this->fields;
}