EventSubscriberInterface
Event Subscriber Interface Plugins implement this to declare which events they subscribe to.
EventSubscriberInterface::getSubscribedEvents()
abstract public static function getSubscribedEvents(): arrayReturns array of events this plugin subscribes to. Format: [ 'event.name' => [ 'method' => 'handlerMethodName', 'priority' => 0 // Optional, default 0 ], 'other.event' => ['method' => 'onOtherEvent'] ] Supports wildcards: 'user.*' matches every one-segment event under `user.` (see MilpaEventDispatcherInterface::subscribe() for the full grammar).