I have three entities:
- Employer
- Employee
- Benefits
Benefit is child entity for Employer and Employee entities. It means both of these can cause creating a Benefit record and I m writing a plugin (which will run on Create of Benefit). Question is how in code I can check which entity among Employer and Employee causes creation of Benefit record ? I appreciate your help.
Edit:
Drew suggested a way to check value, I m curies is there a way like I can know in plugin code which entity basically initiated it or triggered this plugin. I mean without checking value a way to get that linked entity name. Thanks
*This post is locked for comments