*/
public static function getSubscribedEvents() {
return [
- Events::PREPARE => ['onApiPrepare', Events::W_MIDDLE],
- Events::RESPOND => ['onApiRespond', Events::W_EARLY * 2],
+ 'civi.api.prepare' => ['onApiPrepare', Events::W_MIDDLE],
+ 'civi.api.respond' => ['onApiRespond', Events::W_EARLY * 2],
];
}
/**
- * @var array(\API_Wrapper)
+ * @var \API_Wrapper[]
*/
protected $defaults;