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

Breadcrumb

  1. Drupal Core 11.1.x

DatabaseEvent.php

Namespace

Drupal\Core\Database\Event

File

core/lib/Drupal/Core/Database/Event/DatabaseEvent.php

View source
<?php

namespace Drupal\Core\Database\Event;

use Drupal\Component\EventDispatcher\Event;

/**
 * Represents a database event.
 */
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);
    }

}

Classes

Title Deprecated Summary
DatabaseEvent Represents a database event.

API Navigation

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