Skip to main content

execute_hook

Method
This is a method of the PluginManager class in the plugins module.
Execute hooks for a specific hook type

Signature

def execute_hook(
        &self,
        hook: PluginHook,
        data: serde_json::Value,
    ) -> Result<serde_json::Value>

Parameters

hook
PluginHook
required
No description available.
data
serde_json::Value
required
No description available.

Returns

Returns
Result<serde_json::Value>
The result of the operation.