Mercurial > hg > isophonics-drupal-site
comparison core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\serialization\EntityResolver; | |
4 | |
5 use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
6 | |
7 /** | |
8 * Interface for extracting UUID from entity reference data when denormalizing. | |
9 */ | |
10 interface UuidReferenceInterface extends NormalizerInterface { | |
11 | |
12 /** | |
13 * Get the uuid from the data array. | |
14 * | |
15 * @param array $data | |
16 * The data, as was passed into the Normalizer. | |
17 * | |
18 * @return string | |
19 * A UUID. | |
20 */ | |
21 public function getUuid($data); | |
22 | |
23 } |