You are here

public function Relationship::getMergedMeta in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::getMergedMeta()
  2. 10 core/modules/jsonapi/src/JsonApiResource/Relationship.php \Drupal\jsonapi\JsonApiResource\Relationship::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.

Overrides TopLevelDataInterface::getMergedMeta

File

core/modules/jsonapi/src/JsonApiResource/Relationship.php, line 209

Class

Relationship
Represents references from one resource object to other resource object(s).

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getMergedMeta(array $top_level_meta) {
  return NestedArray::mergeDeep($top_level_meta, $this
    ->getMeta());
}