public function ResourceObjectData::getMergedLinks in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/JsonApiResource/ResourceObjectData.php \Drupal\jsonapi\JsonApiResource\ResourceObjectData::getMergedLinks()
Merges the object's links with the top-level links.
Parameters
\Drupal\jsonapi\JsonApiResource\LinkCollection $top_level_links: The top-level links to merge.
Return value
\Drupal\jsonapi\JsonApiResource\LinkCollection The merged links.
Overrides TopLevelDataInterface::getMergedLinks
File
- core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceObjectData.php, line 74
Class
- ResourceObjectData
- Represents the primary data for individual and collection documents.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getMergedLinks(LinkCollection $top_level_links) {
return $top_level_links;
}