You are here

public function ResourceObject::getFields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getFields()
  2. 10 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\JsonApiResource

Code

public function getFields() {
  return $this->fields;
}