UuidReferenceInterface.php

Same filename in other branches
  1. 9 core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php
  2. 8.9.x core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php
  3. 10 core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php

Namespace

Drupal\serialization\EntityResolver

File

core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php

View source
<?php

namespace Drupal\serialization\EntityResolver;

use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

/**
 * Interface for extracting UUID from entity reference data when denormalizing.
 */
interface UuidReferenceInterface extends NormalizerInterface {
    
    /**
     * Get the uuid from the data array.
     *
     * @param array $data
     *   The data, as was passed into the Normalizer.
     *
     * @return string
     *   A UUID.
     */
    public function getUuid($data);

}

Interfaces

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

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