class Com in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Uuid/Com.php \Drupal\Component\Uuid\Com
UUID implementation using the Windows internal GUID extension.
Hierarchy
- class \Drupal\Component\Uuid\Com implements UuidInterface
Expanded class hierarchy of Com
See also
http://php.net/com_create_guid
File
- lib/
Drupal/ Component/ Uuid/ Com.php, line 15 - Contains \Drupal\Component\Uuid\Com.
Namespace
Drupal\Component\UuidView source
class Com implements UuidInterface {
/**
* {@inheritdoc}
*/
public function generate() {
// Remove {} wrapper and make lower case to keep result consistent.
return strtolower(trim(com_create_guid(), '{}'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Com:: |
public | function |
Generates a Universally Unique IDentifier (UUID). Overrides UuidInterface:: |