- πΊπΈUnited States graper
Supporting Hook Event Dispatcher would only show 1 single "job" which would reflect the legacy hook_cron() found in the hook event dispatcher sub module for core events.
I think Ultimate Cron could create its own event that can be subscribed to, which could then be detected and scheduled within Ultimate Cron's UI when another module subscribes to the event.
- π¨πSwitzerland berdir Switzerland
You can't control events like that. Ultimate Cron is all about per-cronjob management and an event either happens or not. It's not about hooks or events, ultimate_cron is about callbacks, which can be functions or service methods. hooks happen to be valid callbacks, events are not. But #3 has a simple enough workaround. If cron is going to rework hook_cron into something else, then it would need to be a plugin system to be compatible with what we are doing here.
- Status changed to Closed: duplicate
10 months ago 3:19pm 3 February 2024 - π¨πSwitzerland berdir Switzerland
Closing as duplicate of π Invoke hooks via the 'module_handler' service Needs work which might work for hook_event_dispatcher as well and the long-term plan which is π Support CronSubscribers Active