Is there a worth that may be returned from a controller operate meaning, “Keep on the present web page and do not refresh”? Form of like, “Pay no consideration to that click on.”
For instance, a type has “/obtain” as its motion. This path is outlined in routing.yml to name a obtain() operate which determines whether or not the consumer has permission to obtain. If not, when the consumer clicks Submit, I would like them to remain on the identical web page with nothing modified.
I do know I can simply redirect to the identical web page. I do know I can intercept the clicking and use ajax to determine if they’ve permission after which ignore the clicking that method. I am not searching for strategies on different options like these. I merely need to know if there’s a controller return worth meaning, “do nothing”.
I’ve prepared many articles and I’ve tried guessing what may work (no return, null return, empty array, empty markup, and many others.) however I have not discovered a solution to this query.