* @param \Civi\Core\Event\PostEvent $event
*/
public static function dispatchSubevent(PostEvent $event) {
- \Civi::service('dispatcher')->dispatch("hook_civicrm_post::" . $event->entity, $event);
+ \Civi::dispatcher()->dispatch("hook_civicrm_post::" . $event->entity, $event);
}
/**
- * @var string 'create'|'edit'|'delete' etc
+ * One of: 'create'|'edit'|'delete'
+ *
+ * @var string
*/
public $action;