You are here

class Com in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Uuid/Com.php \Drupal\Component\Uuid\Com

UUID implementation using the Windows internal GUID extension.

Hierarchy

Expanded class hierarchy of Com

See also

http://php.net/com_create_guid

1 file declares its use of Com
UuidTest.php in core/tests/Drupal/Tests/Component/Uuid/UuidTest.php
Contains \Drupal\Tests\Component\Uuid\UuidTest.
1 string reference to 'Com'
CategoryAutocompleteTest::providerTestAutocompleteSuggestions in core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php
Data provider for testAutocompleteSuggestions().

File

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

Namespace

Drupal\Component\Uuid
View 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

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