function TestSubscriber::getSubscribedEvents

File

core/modules/package_manager/tests/modules/package_manager_test_validation/src/EventSubscriber/TestSubscriber.php, line 151

Class

TestSubscriber
Defines an event subscriber for testing validation of Package Manager events.

Namespace

Drupal\package_manager_test_validation\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    return [
        PreCreateEvent::class => [
            'handleEvent',
            5,
        ],
        PostCreateEvent::class => [
            'handleEvent',
            5,
        ],
        PreRequireEvent::class => [
            'handleEvent',
            5,
        ],
        PostRequireEvent::class => [
            'handleEvent',
            5,
        ],
        PreApplyEvent::class => [
            'handleEvent',
            5,
        ],
        PostApplyEvent::class => [
            'handleEvent',
            5,
        ],
        StatusCheckEvent::class => [
            'handleEvent',
            5,
        ],
    ];
}

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