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