- 🇬🇧United Kingdom catch
Now a duplicate of 📌 OOP hooks using event dispatcher Needs review :)
Views has quite a few hooks that are invoked during the lifecycle of a view, when views cache is invalidated, when a view is analysed, etc.. Most hooks have now been removed in D8, we should follow suit here and convert views to dispatch events instead of invoking hooks. People can then do what they need to with views in an OO fashion.
Convert hooks to events. Not touching views data, and probably views query/form substitutions too - as they are more of a discovery/collection mechanism. Maybe something like #1972304: Add a HookEvent → or 🌱 Allow module services to specify hooks Needs work could help with those?
All things.
None
Replacement of most views hooks with corresponding events.
Closed: duplicate
11.0 🔥
views.module
Related to the Views in Drupal Core initiative.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Now a duplicate of 📌 OOP hooks using event dispatcher Needs review :)