I am making decently advanced system, the place many entities are referencing one another, and I do not wish to enable any damaged references. That’s the reason I wish to implement validation at entity deletion, however the place ought to I truly put it?
I do know hook_form_validate runs on deletion, however it’s laborious to know if it has been invoked by deleting operation. I assume I may also do correct verify in entry callback of entity, nevertheless it is not about entry however validation, and I feel that might be ugly workaround, as these are two various things. What can be a great place to place, a validation mechanism for deletion that might question Drupal Development database to know if deletion of entity is feasible?