Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get plugin corresponding to return values when calling hook #235

Open
youngmit opened this issue Sep 10, 2019 · 1 comment
Open

Get plugin corresponding to return values when calling hook #235

youngmit opened this issue Sep 10, 2019 · 1 comment

Comments

@youngmit
Copy link

Perhaps this is already possible, and I am just missing something, but is it possible to determine which plugin returned each value from a hook call? This would be valuable information for providing error messages and the like in situations where one and only one plugin should return a value under certain circumstances. Being able to report which plugins returned which values would be nice. Perhaps something like an alternative hook calling mechanism, which would return a dictionary (keyed on plugin namespace), rather than a list?

@simonw
Copy link
Contributor

simonw commented Oct 30, 2020

I'm interested in this too, also for debugging purposes. I'd like to display an HTML comment on a page that shows which plugin was responsible for returning a specific piece of information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants