function Connection::disableEvents
Same name in other branches
- 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::disableEvents()
Disables database API events dispatching.
Parameters
string[] $eventNames: A list of database events to be disabled.
Return value
static
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1503
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function disableEvents(array $eventNames) : static {
foreach ($eventNames as $eventName) {
assert(class_exists($eventName), "Event class {$eventName} does not exist");
$this->enabledEvents[$eventName] = FALSE;
}
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.