Objective
- Although doing stuff in hook_init is avoided as there is always a better way of doing the same thing elsewhere. We have taken a look at the event subscriber system on Day-18. We will be extending the same to hook into the page response to do something before every response is rendered, just as you did with hook_init()!
Activity Card Download
| Attachment | Size |
|---|---|
| Day 21 - Replacing hook_init : Doing something on every page-rev05132016.pdf | 145.58 KB |