interface UuidReferenceInterface

Same name in other branches
  1. 9 core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php \Drupal\serialization\EntityResolver\UuidReferenceInterface
  2. 8.9.x core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php \Drupal\serialization\EntityResolver\UuidReferenceInterface
  3. 11.x core/modules/serialization/src/EntityResolver/UuidReferenceInterface.php \Drupal\serialization\EntityResolver\UuidReferenceInterface

Interface for extracting UUID from entity reference data when denormalizing.

Hierarchy

  • interface \Drupal\serialization\EntityResolver\UuidReferenceInterface extends \Symfony\Component\Serializer\Normalizer\NormalizerInterface

Expanded class hierarchy of UuidReferenceInterface

All classes that implement UuidReferenceInterface

File

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

Namespace

Drupal\serialization\EntityResolver
View source
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);

}

Members

Title Sort descending Modifiers Object type Summary
UuidReferenceInterface::getUuid public function Get the uuid from the data array.

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