You are here

public function UuidReferenceInterface::getUuid in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php \Drupal\serialization\EntityResolver\UuidReferenceInterface::getUuid()

Get the uuid from the data array.

Parameters

array $data: The data, as was passed into the Normalizer.

Return value

string A UUID.

1 method overrides UuidReferenceInterface::getUuid()
EntityReferenceItemNormalizer::getUuid in core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
Get the uuid from the data array.

File

core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php, line 21

Class

UuidReferenceInterface
Interface for extracting UUID from entity reference data when denormalizing.

Namespace

Drupal\serialization\EntityResolver

Code

public function getUuid($data);