You are here

public function TopLevelDataInterface::getMergedLinks in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\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\JsonApiResource

Code

public function getMergedLinks(LinkCollection $top_level_links);