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

Breadcrumb

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

class DatabaseEvent

Represents a database event.

Hierarchy

  • class \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
    • class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
      • class \Drupal\Core\Database\Event\DatabaseEvent extends \Drupal\Component\EventDispatcher\Event

Expanded class hierarchy of DatabaseEvent

1 file declares its use of DatabaseEvent
Connection.php in core/lib/Drupal/Core/Database/Connection.php

File

core/lib/Drupal/Core/Database/Event/DatabaseEvent.php, line 10

Namespace

Drupal\Core\Database\Event
View source
abstract class DatabaseEvent extends Event {
    
    /**
     * The time of the event.
     */
    public readonly float $time;
    
    /**
     * Constructs a DatabaseEvent object.
     */
    public function __construct() {
        $this->time = microtime(TRUE);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DatabaseEvent::$time public property The time of the event.
DatabaseEvent::__construct public function Constructs a DatabaseEvent object. 2

API Navigation

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