Unregistering Interceptors
Each interceptor can unregister itself from any event by using the unregister( state ) method. This method is found in all Interceptors or can be accessed via the interceptor service as well.
1
// Inside an interceptor
2
unregister( 'preProcess' );
3
4
// From the interceptor service
5
controller.getInterceptorService()
6
.unregister( interceptorName="MyInterceptor", state="preProcess" );
Copied!
Last modified 3yr ago
Copy link
Edit on GitHub