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

Breadcrumb

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

function TracingDriver::reference

Overrides Driver::reference

File

vendor/revolt/event-loop/src/EventLoop/Driver/TracingDriver.php, line 153

Class

TracingDriver

Namespace

Revolt\EventLoop\Driver

Code

public function reference(string $callbackId) : string {
    try {
        $this->driver
            ->reference($callbackId);
        unset($this->unreferencedCallbacks[$callbackId]);
    } catch (InvalidCallbackError $e) {
        $e->addInfo("Creation trace", $this->getCreationTrace($callbackId));
        $e->addInfo("Cancellation trace", $this->getCancelTrace($callbackId));
        throw $e;
    }
    return $callbackId;
}
RSS feed
Powered by Drupal