You are here

private function Telemetry::getUserId in Lightning Core 8.3

Same name and namespace in other branches
  1. 8.4 modules/acquia_telemetry/src/Telemetry.php \Drupal\acquia_telemetry\Telemetry::getUserId()

Gets a unique ID for this application. "User ID" is an Amplitude term.

Return value

string Returns a hashed site uuid.

1 call to Telemetry::getUserId()
Telemetry::createEvent in modules/acquia_telemetry/src/Telemetry.php
Creates an Amplitude event.

File

modules/acquia_telemetry/src/Telemetry.php, line 214

Class

Telemetry
Telemetry service.

Namespace

Drupal\acquia_telemetry

Code

private function getUserId() {
  return Crypt::hashBase64($this->configFactory
    ->get('system.site')
    ->get('uuid'));
}