Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Dec 2019 at 06:43 UTC
Updated:
10 Jan 2020 at 06:14 UTC
Jump to comment: Most recent
The only kernel event we use right now is kernel.request, which is used for "Drupal is initializing". Here is a patch to add the kernel.terminate event, for "Drupal is terminating". This event is generated after the response is sent but before PHP is shutdown. I don't think it's extremely useful, but there's no alternative to do things that had to be done in hook_exit() in D7 (hook_exist() was removed from D8). This is a super light weight feature, with a test.
| Comment | File | Size | Author |
|---|---|---|---|
| kernel.terminate.patch | 3.12 KB | tr |
Comments
Comment #3
tr commentedI don't see how this can hurt anything, and perhaps it will be helpful, so just committed it.