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

Breadcrumb

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

function TracingDriver::enable

Overrides Driver::enable

File

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

Class

TracingDriver

Namespace

Revolt\EventLoop\Driver

Code

public function enable(string $callbackId) : string {
    try {
        $this->driver
            ->enable($callbackId);
        $this->enabledCallbacks[$callbackId] = true;
    } 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