function DatabaseEventSubscriber::getSubscribedEvents

Same name in other branches
  1. 11.x core/modules/system/tests/modules/database_test/src/EventSubscriber/DatabaseEventSubscriber.php \Drupal\database_test\EventSubscriber\DatabaseEventSubscriber::getSubscribedEvents()

File

core/modules/system/tests/modules/database_test/src/EventSubscriber/DatabaseEventSubscriber.php, line 38

Class

DatabaseEventSubscriber
Responds to database API events.

Namespace

Drupal\database_test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    return [
        StatementExecutionStartEvent::class => 'onStatementExecutionStart',
        StatementExecutionEndEvent::class => 'onStatementExecutionEnd',
        StatementExecutionFailureEvent::class => 'onStatementExecutionFailure',
    ];
}

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