function TopLevelDataInterface::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.
2 methods override TopLevelDataInterface::getMergedLinks()
- Relationship::getMergedLinks in core/modules/ jsonapi/ src/ JsonApiResource/ Relationship.php 
- Merges the object's links with the top-level links.
- ResourceObjectData::getMergedLinks in core/modules/ jsonapi/ src/ JsonApiResource/ ResourceObjectData.php 
- Merges the object's links with the top-level links.
File
- 
              core/modules/ jsonapi/ src/ JsonApiResource/ TopLevelDataInterface.php, line 41 
Class
- TopLevelDataInterface
- Interface for objects that can appear as top-level object data.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getMergedLinks(LinkCollection $top_level_links);Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
