Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Host.php

function Host::getMacOsId

File

vendor/open-telemetry/sdk/Resource/Detectors/Host.php, line 80

Class

Host

Namespace

OpenTelemetry\SDK\Resource\Detectors

Code

private function getMacOsId() : ?string {
    $out = exec('ioreg -rd1 -c IOPlatformExpertDevice | awk \'/IOPlatformUUID/ { split($0, line, "\\""); printf("%s\\n", line[4]); }\'');
    if ($out !== false) {
        return $out;
    }
    return null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal