function DatabaseEventSubscriber::onStatementExecutionStart
Same name in other branches
- 11.x core/modules/system/tests/modules/database_test/src/EventSubscriber/DatabaseEventSubscriber.php \Drupal\database_test\EventSubscriber\DatabaseEventSubscriber::onStatementExecutionStart()
Subscribes to a statement execution started event.
Parameters
\Drupal\Core\Database\Event\StatementExecutionStartEvent $event: The database event.
File
-
core/
modules/ system/ tests/ modules/ database_test/ src/ EventSubscriber/ DatabaseEventSubscriber.php, line 52
Class
- DatabaseEventSubscriber
- Responds to database API events.
Namespace
Drupal\database_test\EventSubscriberCode
public function onStatementExecutionStart(StatementExecutionStartEvent $event) : void {
$this->statementIdsInExecution[$event->statementObjectId] = TRUE;
$this->countStatementStarts++;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.