DatabaseEvent.php
Same filename in other branches
Namespace
Drupal\Core\Database\EventFile
-
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.