You are here

public function ResourceObjectData::getData in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/ResourceObjectData.php \Drupal\jsonapi\JsonApiResource\ResourceObjectData::getData()
  2. 10 core/modules/jsonapi/src/JsonApiResource/ResourceObjectData.php \Drupal\jsonapi\JsonApiResource\ResourceObjectData::getData()

Returns the data for the top-level data member of a JSON:API document.

Return value

\Drupal\jsonapi\JsonApiResource\Data The top-level data.

Overrides TopLevelDataInterface::getData

File

core/modules/jsonapi/src/JsonApiResource/ResourceObjectData.php, line 37

Class

ResourceObjectData
Represents the primary data for individual and collection documents.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getData() {
  return $this
    ->getAccessible();
}