function TestClass::onKernelRequestTest

A simple kernel listener method.

File

core/modules/system/tests/modules/service_provider_test/src/TestClass.php, line 42

Class

TestClass
Handles kernel events for request and response.

Namespace

Drupal\service_provider_test

Code

public function onKernelRequestTest(RequestEvent $event) {
  \Drupal::messenger()->addStatus($this->t('The service_provider_test event subscriber fired!'));
}

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