Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResourceObject.php

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 56

Class

ResourceObject
Represents a JSON:API resource object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

protected $fields;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal