- Issue created by @pfrenssen
- Merge request !114Resolve #3479449 "No operation event instance creator" β (Open) created by pfrenssen
- πΊπΈUnited States dustinleblanc Ithaca, NY
I've tried implementing this but nothing seems to be changing. I took at look at
EventInstanceCreatorPluginManager
and it looks like it calls this:$this->alterInfo('eventinstance_creator_info');
Which I think would make the hook
hook_eventinstance_creator_info_alter()
based on the docs in the default plugin manager docblock:/** * Sets the alter hook name. * * @param string $alter_hook * Name of the alter hook; for example, to invoke * hook_mymodule_data_alter() pass in "mymodule_data". */ protected function alterInfo($alter_hook) {
I trieded messing with the hook naming but nothing seems to be changing at all. Do we have any test cases of this working in the wild?
- πΊπΈUnited States owenbush Denver, CO
The `eventinstance_creator_info` hook is an alter hook for the plugin manager, so you can alter the plugin information, if you want to change the actual plugin used when creating instances, you either need to implement `hook_recurring_events_event_instance_creator_plugin_alter` or you can go to `/admin/structure/events/series/settings` and set the plugin to use in the `Event Instance Creator Plugin` field.
- π§π¬Bulgaria pfrenssen Sofia
@dustinleblanc, there is an example hook implementation in the issue summary.
- πΊπΈUnited States dustinleblanc Ithaca, NY
Yeah @pfrenssen I tried that hook and could not really see anything change. I tried running a dump and die inside the hook but could not get that to trigger.
In the end I did end up doing what @owenbush suggested and I just swapped the no op plugin in, because our use case all of the date for the recurring events are always custom, and therefore we never want the reconciliation to run. Now I am just dealing with the fact that the warning still pops up when someone saves any of the event series, and if I run the hook to remove the date customizations, it stops that warning from showing but doesn't allow for the user to actually save the series. That is where I am stuck right now.
- πΊπΈUnited States dustinleblanc Ithaca, NY
annnnndd as usual, turns out saving the form is giving us issues because we customized the form...ignore that part.