UuidInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Component/Uuid/UuidInterface.php
  2. 8.9.x core/lib/Drupal/Component/Uuid/UuidInterface.php
  3. 10 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 string
     *   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.