UNPKG

@loopback/docs

Version:
27 lines (17 loc) 881 B
--- lang: en title: 'API docs: context.invocationcontext.loadinterceptors' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.invocationcontext.loadinterceptors.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [InvocationContext](./context.invocationcontext.md) &gt; [loadInterceptors](./context.invocationcontext.loadinterceptors.md) ## InvocationContext.loadInterceptors() method Load all interceptors for the given invocation context. It adds interceptors from possibly three sources: 1. method level `@intercept` 2. class level `@intercept` 3. global interceptors discovered in the context <b>Signature:</b> ```typescript loadInterceptors(): InterceptorOrKey[]; ``` <b>Returns:</b> `InterceptorOrKey[]`