You are here

public function TopLevelDataInterface::getData in Drupal 10

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

File

core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php, line 22

Class

TopLevelDataInterface
Interface for objects that can appear as top-level object data.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getData();