Hi there,
I'm currently refactoring my old Espo code in order to match the good standards and get rid of my deprecated code.
I'm transforming my old "beforeRelate" functions (inside my Repositories) into record hooks (https://docs.espocrm.com/development...kclassnamelist).
But, I did find there was no
parameter inside the
function inside the
interface.
How should I proceed in order to give optionnal parameters to my beforeRelate hooks ?
Regards,
Firyo.
I'm currently refactoring my old Espo code in order to match the good standards and get rid of my deprecated code.
I'm transforming my old "beforeRelate" functions (inside my Repositories) into record hooks (https://docs.espocrm.com/development...kclassnamelist).
But, I did find there was no
PHP Code:
$options
PHP Code:
public function process(Entity $entity, string $link, Entity $foreignEntity): void;
PHP Code:
application/Espo/Core/Record/Hook/LinkHook.php
How should I proceed in order to give optionnal parameters to my beforeRelate hooks ?
Regards,
Firyo.
Comment