Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Component / Uuid / Com.php
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 }