comparison core/lib/Drupal/Component/Uuid/Com.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 129ea1e6d783
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Component\Uuid;
4
5 /**
6 * Generates a UUID using the Windows internal GUID extension.
7 *
8 * @see http://php.net/com_create_guid
9 */
10 class Com implements UuidInterface {
11 /**
12 * {@inheritdoc}
13 */
14 public function generate() {
15 // Remove {} wrapper and make lower case to keep result consistent.
16 return strtolower(trim(com_create_guid(), '{}'));
17 }
18
19 }