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

Breadcrumb

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

function Context::activate

Overrides ContextInterface::activate

File

vendor/open-telemetry/context/Context.php, line 75

Class

Context

Namespace

OpenTelemetry\Context

Code

public function activate() : ScopeInterface {
    $scope = self::storage()->attach($this);
    
    /** @psalm-suppress RedundantCondition @phpstan-ignore-next-line */
    assert(self::debugScopesDisabled() || ($scope = new DebugScope($scope)));
    return $scope;
}

API Navigation

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