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

Breadcrumb

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

function EventLoop::reference

Reference a callback.

This will keep the event loop alive whilst the event is still being monitored. Callbacks have this state by default.

Parameters

string $callbackId The callback identifier.:

Return value

string The callback identifier.

Throws

InvalidCallbackError If the callback identifier is invalid.

File

vendor/revolt/event-loop/src/EventLoop.php, line 276

Class

EventLoop
Accessor to allow global access to the event loop.

Namespace

Revolt

Code

public static function reference(string $callbackId) : string {
    return self::getDriver()->reference($callbackId);
}

API Navigation

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