You are here

protected property ResourceObject::$fields in JSON:API 8.2

The object's fields.

This refers to "fields" in the JSON:API sense of the word. Config entities do not have real fields, so in that case, this will be an array of values for config entity attributes.

Type: \Drupal\Core\Field\FieldItemListInterface[]|mixed[]

File

src/JsonApiResource/ResourceObject.php, line 53

Class

ResourceObject
Represents a JSON:API resource object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

protected $fields;