Single callbacks can use the simplest method, defaulting to a priority of 0
return [
'event' => 'someMethod',
'event2' => 'someOtherMethod',
];
If you want to specify multiple callbacks and/or a priority for the callback(s):
return [
'event' => [
'someMethod', // Defaults to priority 0, same as 'someMethod' => 0
'someOtherMethod' => 10, // Will trigger before "someMethod"
'someThirdMethod' => -10, // Will trigger after "someMethod"
],
'event2' => 'someOtherMethod',
];