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

Breadcrumb

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

function InvalidCallbackError::invalidIdentifier

MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid callback identifier.

An invalid callback identifier is any identifier that is not yet emitted by the driver or cancelled by the user.

5 calls to InvalidCallbackError::invalidIdentifier()
AbstractDriver::enable in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Enable a callback to be active starting in the next tick.
AbstractDriver::getType in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Returns the type of the callback identified by the given callback identifier.
AbstractDriver::isEnabled in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Returns whether the callback identified by the given callback identifier is currently enabled.
AbstractDriver::isReferenced in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Returns whether the callback identified by the given callback identifier is currently referenced.
AbstractDriver::reference in vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php
Reference a callback.

File

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

Class

InvalidCallbackError

Namespace

Revolt\EventLoop

Code

public static function invalidIdentifier(string $callbackId) : self {
    return new self($callbackId, self::E_INVALID_IDENTIFIER, 'Invalid callback identifier ' . $callbackId);
}

API Navigation

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