*/
public static function getSubscribedEvents() {
return [
- Events::RESOLVE => [
+ 'civi.api.resolve' => [
// TODO decide if we really want to override others
['onApiResolve', Events::W_EARLY],
],
- Events::AUTHORIZE => [
+ 'civi.api.authorize' => [
// TODO decide if we really want to override others
['onApiAuthorize', Events::W_EARLY],
],
*/
public function getActionNames($version, $entity) {
$entity = _civicrm_api_get_camel_name($entity, $version);
- return isset($this->actions[$entity]) ? $this->actions[$entity] : $this->actions['*'];
+ return $this->actions[$entity] ?? $this->actions['*'];
}
}