Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Com.php

function Com::generate

Overrides UuidInterface::generate

File

core/lib/Drupal/Component/Uuid/Com.php, line 15

Class

Com
Generates a UUID using the Windows internal GUID extension.

Namespace

Drupal\Component\Uuid

Code

public function generate() {
    // Remove {} wrapper and make lower case to keep result consistent.
    return strtolower(trim(com_create_guid(), '{}'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal