function TestDomainObjectViewSubscriber::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php \Drupal\early_rendering_controller_test\TestDomainObjectViewSubscriber::getSubscribedEvents()
  2. 8.9.x core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php \Drupal\early_rendering_controller_test\TestDomainObjectViewSubscriber::getSubscribedEvents()
  3. 10 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 42

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;
}

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