You are here

protected function SmsMessage::uuidGenerator in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::uuidGenerator()
  2. 2.1.x src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::uuidGenerator()

Gets the UUID generator.

Return value

\Drupal\Component\Uuid\UuidInterface The UUID generator.

1 method overrides SmsMessage::uuidGenerator()
TestSmsMessage::uuidGenerator in tests/src/Unit/Message/SmsMessageTest.php
Gets the UUID generator.

File

src/Message/SmsMessage.php, line 325

Class

SmsMessage
Basic implementation of an SMS message.

Namespace

Drupal\sms\Message

Code

protected function uuidGenerator() {
  return \Drupal::service('uuid');
}