Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TopLevelDataInterface.php

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\JsonApiResource

Code

public function getMergedLinks(LinkCollection $top_level_links);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal