DatabaseEvent.php

Same filename and directory in other branches
  1. 10 core/lib/Drupal/Core/Database/Event/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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.