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

Breadcrumb

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

function ClockFactory::setDefault

File

vendor/open-telemetry/sdk/Common/Time/ClockFactory.php, line 21

Class

ClockFactory
@codeCoverageIgnore

Namespace

OpenTelemetry\SDK\Common\Time

Code

public static function setDefault(?ClockInterface $clock) : void {
    if ($clock !== null) {
        Clock::setDefault($clock);
    }
    else {
        Clock::reset();
    }
}

API Navigation

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