function FormTestEventSubscriber::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::getSubscribedEvents()
  3. 10 core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::getSubscribedEvents()

File

core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php, line 43

Class

FormTestEventSubscriber
Test event subscriber to add new attributes to the request.

Namespace

Drupal\form_test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[KernelEvents::REQUEST][] = [
        'onKernelRequest',
    ];
    $events[KernelEvents::RESPONSE][] = [
        'onKernelResponse',
    ];
    return $events;
}

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