public function ResourceObject::getFields in Drupal 9
Same name and namespace in other branches
- 8 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 152
Class
- ResourceObject
- Represents a JSON:API resource object.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getFields() {
return $this->fields;
}