Plug in API - czcorpus/kontext GitHub Wiki
When talking about plug-ins, both KonText documentation and source code use two similar terms which must be clarified first:
- PluginApi is a proxy object providing access to functions related to a currently processed request/action. It is typically passed as the first argument of plug-in interface methods.
- Plug-in interface is an interface of a specific plug-in type (sessions, db, taghelper,...).
The PluginApi is instantiated "per request".