hook_init
Categories
Component ID
2757551
Component name
hook_init
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
hook_init was a swiss army knife hook in Drupal 7. However hook_init() has been removed in Drupal 8:
https://www.drupal.org/node/2013014
You can still implement this easily enough by registering an event subscriber. However it would be nice if you still use hook_init!
This module simply reimplements hook_init for Drupal 8 by implementing an event subscriber for you and then calling all hook_init implementations, meaning you can continue to use hook_init as per Drupal 7.
