ResourceObject::$fields

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::fields
  2. 10 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::fields
  3. 11.x core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::fields

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

core/modules/jsonapi/src/JsonApiResource/ResourceObject.php, line 54

Class

ResourceObject
Represents a JSON:API resource object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

protected $fields;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.