function StatementBase::dispatchStatementExecutionEndEvent
Dispatches an event informing that the statement execution succeeded.
Parameters
\Drupal\Core\Database\Event\StatementExecutionStartEvent|null $startEvent: The start event or NULL if event dispatching is not enabled.
2 calls to StatementBase::dispatchStatementExecutionEndEvent()
- StatementPrefetchIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - Executes a prepared statement.
- StatementWrapperIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php - Executes a prepared statement.
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php, line 132
Class
- StatementBase
- StatementInterface base implementation.
Namespace
Drupal\Core\Database\StatementCode
protected function dispatchStatementExecutionEndEvent(?StatementExecutionStartEvent $startEvent) : void {
if (isset($startEvent) && $this->connection
->isEventEnabled(StatementExecutionEndEvent::class)) {
$this->connection
->dispatchEvent(new StatementExecutionEndEvent($startEvent->statementObjectId, $startEvent->key, $startEvent->target, $startEvent->queryString, $startEvent->args, $startEvent->caller, $startEvent->time));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.