In a custom module, I have an AfterRelate hook on an existing entity.
In this hook, I perform some validations, which can result in either change in value of some fields or undoing of the just saved relationship.
In both of these cases, the frontend View of the Entity becomes outdated and needs to be refreshed.
If I throw an Error or Conflict exception, it will display an Error Message in UI but the View is not refreshed.
Is there any way to cause the front-end View to be refreshed from the backend code in the Hook?
In this hook, I perform some validations, which can result in either change in value of some fields or undoing of the just saved relationship.
In both of these cases, the frontend View of the Entity becomes outdated and needs to be refreshed.
If I throw an Error or Conflict exception, it will display an Error Message in UI but the View is not refreshed.
Is there any way to cause the front-end View to be refreshed from the backend code in the Hook?
Comment