function TopLevelDataInterface::getData
Same name in other branches
- 8.9.x core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getData()
- 10 core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getData()
- 11.x 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.
2 methods override TopLevelDataInterface::getData()
- Relationship::getData in core/
modules/ jsonapi/ src/ JsonApiResource/ Relationship.php - Gets the relationship object's data.
- ResourceObjectData::getData in core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceObjectData.php - Returns the data for the top-level data member of a JSON:API document.
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\JsonApiResourceCode
public function getData();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.