function TopLevelDataInterface::getMergedMeta

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getMergedMeta()
  2. 8.9.x core/modules/jsonapi/src/JsonApiResource/TopLevelDataInterface.php \Drupal\jsonapi\JsonApiResource\TopLevelDataInterface::getMergedMeta()
  3. 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.