You are here

public static function TestDomainObjectViewSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php \Drupal\early_rendering_controller_test\TestDomainObjectViewSubscriber::getSubscribedEvents()
  2. 9 core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php \Drupal\early_rendering_controller_test\TestDomainObjectViewSubscriber::getSubscribedEvents()

File

core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php, line 40

Class

TestDomainObjectViewSubscriber
View subscriber for turning TestDomainObject objects into Response objects.

Namespace

Drupal\early_rendering_controller_test

Code

public static function getSubscribedEvents() : array {
  $events[KernelEvents::VIEW][] = [
    'onViewTestDomainObject',
  ];
  return $events;
}