public function ResourceObjectData::getData in Drupal 9
Same name and namespace in other branches
- 8 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\JsonApiResourceCode
public function getData() {
return $this
->getAccessible();
}