UuidInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/Uuid/UuidInterface.php
  2. 10 core/lib/Drupal/Component/Uuid/UuidInterface.php
  3. 11.x core/lib/Drupal/Component/Uuid/UuidInterface.php

Namespace

Drupal\Component\Uuid

File

core/lib/Drupal/Component/Uuid/UuidInterface.php

View source
<?php

namespace Drupal\Component\Uuid;


/**
 * Interface for generating UUIDs.
 */
interface UuidInterface {
    
    /**
     * Generates a Universally Unique IDentifier (UUID).
     *
     * @return
     *   A 16 byte integer represented as a hex string formatted with 4 hyphens.
     */
    public function generate();

}

Interfaces

Title Deprecated Summary
UuidInterface Interface for generating UUIDs.

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