interface event_subscriber_interface

internal  
 

Interface for services that subscribe to events.

The Kernel will automatically register these listeners to the EventBus.

Methods

static array
get_subscribed_events()

Returns an array of event names this subscriber wants to listen to.

Details

at line 39
static array get_subscribed_events()

Returns an array of event names this subscriber wants to listen to.

Format: return [ 'middag.item.created' => 'on_item_created', 'middag.item.updated' => ['on_item_updated', 10], // method, priority ];

Return Value

array