dispatch("hook_civicrm_post::" . $event->entity, $event); } /** * @var string 'create'|'edit'|'delete' etc */ public $action; /** * @var string */ public $entity; /** * @var int|NULL */ public $id; /** * @var Object */ public $object; /** * @param $action * @param $entity * @param $id * @param $object */ public function __construct($action, $entity, $id, &$object) { $this->action = $action; $this->entity = $entity; $this->id = $id; $this->object = &$object; } /** * @inheritDoc */ public function getHookValues() { return array($this->action, $this->entity, $this->id, &$this->object); } }