- Issue created by @johnv
"Drupal 11.1 enables the use of OOP hooks, which are the future of hooks in Drupal. A backwards-compatibility layer is provided for legacy procedural hooks. "
Change-record
Support for object oriented hook implementations using autowired services →
describes how to create a Hook class.
Change-record
Improve performance by preventing unnecessary scanning of procedural hooks →
describes a new parameter: module_name.hooks_converted: true
Change-record Most procedural hook implementations have been converted to a hook class → describes the changes in core itself.
Introduce hook classes.
- convert hook_field
- convert hook_field_views
- convert hook_tokens
- When all is done, introduce parameters: module_name.hooks_converted: true
- consider
https://www.drupal.org/node/3490771 →
Active
1.0
Code