class Com

UUID implementation using the Windows internal GUID extension.

Hierarchy

Expanded class hierarchy of Com

See also

http://php.net/com_create_guid

File

drupal/core/lib/Drupal/Component/Uuid/Com.php, line 15
Definition of Drupal\Component\Uuid\Com.

Namespace

Drupal\Component\Uuid
View source
class Com implements UuidInterface {
  public function generate() {

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

}

Members

Name Modifierssort descending Type Description Overrides
Com::generate public function Generates a Universally Unique IDentifier (UUID). Overrides UuidInterface::generate