public function JsonApiDocumentTopLevel::getData in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::getData()
Gets the data.
Return value
\Drupal\jsonapi\JsonApiResource\Data|\Drupal\jsonapi\JsonApiResource\ErrorCollection The data.
File
- core/
modules/ jsonapi/ src/ JsonApiResource/ JsonApiDocumentTopLevel.php, line 87
Class
- JsonApiDocumentTopLevel
- Represents a JSON:API document's "top level".
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getData() {
return $this->data;
}