function TestClass::onKernelRequestTest
Same name in other branches
- 9 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::onKernelRequestTest()
- 10 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::onKernelRequestTest()
- 11.x core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::onKernelRequestTest()
A simple kernel listener method.
File
-
core/
modules/ system/ tests/ modules/ service_provider_test/ src/ TestClass.php, line 38
Class
Namespace
Drupal\service_provider_testCode
public function onKernelRequestTest(GetResponseEvent $event) {
\Drupal::messenger()->addStatus(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.