You are here

public function TopLevelDataInterface::getMergedMeta in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getMergedMeta()
  2. 10 core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getMergedMeta()

Merges the object's meta member with the top-level meta member.

Parameters

array $top_level_meta: The top-level links to merge.

Return value

array The merged meta member.

2 methods override TopLevelDataInterface::getMergedMeta()
Relationship::getMergedMeta in core/modules/jsonapi/src/JsonApiResource/Relationship.php
Merges the object's meta member with the top-level meta member.
ResourceObjectData::getMergedMeta in core/modules/jsonapi/src/JsonApiResource/ResourceObjectData.php
Merges the object's meta member with the top-level meta member.

File

core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php, line 52

Class

TopLevelDataInterface
Interface for objects that can appear as top-level object data.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getMergedMeta(array $top_level_meta);