def _hook(self, hook_name, doc_uri=None, **kwargs):
        """Calls hook_name and returns a list of results from all registered handlers"""
        doc = self.workspace.get_document(doc_uri) if doc_uri else None
        hook_handlers = self.config.plugin_manager.subset_hook_caller(hook_name, self.config.disabled_plugins)
        return hook_handlers(config=self.config, workspace=self.workspace, document=doc, **kwargs)
def _hook ( self , hook_name , doc_uri = None , ** kwargs ) : doc = self . workspace . get_document ( doc_uri ) if doc_uri else None hook_handlers = self . config . plugin_manager . subset_hook_caller ( hook_name , self . config . disabled_plugins ) return hook_handlers ( config = self . config , workspace = self . workspace , document = doc , ** kwargs )
Calls hook_name and returns a list of results from all registered handlers