Comments

jonathan1055’s picture

Issue summary: View changes
dasjo’s picture

TR’s picture

Adding Ubercart and Mime Mail to the issue summary, and adding the rules integration tag, since this has been used in the past. That tag is not specific to D8 though.

TR’s picture

Issue summary: View changes

Reformat issue summary.

TR’s picture

Issue summary: View changes
djdevin’s picture

Issue summary: View changes
TR’s picture

Issue summary: View changes

Added Simplenews

TR’s picture

Issue summary: View changes

Add SMS Framework.

TR’s picture

Issue summary: View changes
vdsh’s picture

Issue summary: View changes
vdsh’s picture

Question about an integration I am trying to set-up with rules.

I am sending some data (in my case, an array of "strategies") via an event, and subscribers can modify the order of those strategies (or even theoretically add or remove some) so that strategy #1 is applied if we meet condition A, and strategy #2 is applied if we meet condition B.

But this is strategy selection is temporary, and should not be saved as it's done uniquely in the context of that specific request.

I don't want to integrate Rules as a rules component, as I don't want a hard depandancy on the rules module. So I am trying to set-up the right event and strategies related actions.

It doesn't seem to work out of the box with Rules, because the actions properly update the strategies context variable, but this is never circled back to the original event (I may have missed something though).

This is the event I am firing:

    // $strategies is an array of machine_name
    // Allow other modules to modify it.
    $event = new StrategiesOrderAlter($strategies);

    // Get the event_dispatcher service and dispatch the event.
    $this->eventDispatcher->dispatch(StrategiesOrderAlter::EVENT_NAME, $event);

    // Get updated strategies list.
    $strategies = $event->getStrategies();

2 ideas I have so far to answer this:
- create a subscriber in my own module that will trigger a new event which will be the one associated with the rules event - and share data between the event and the actions through a $_GLOBALS variable, but that didn't seem the right option
- use the event context as it's created for that purpose, see #3141206: Updating event context after the rule's execution

Could you please let me know what is the best option? There may be a 3rd one I am missing.

TR’s picture

@vdsh: This is not the place to discuss it. This is a meta issue to track contributed modules which are porting their Rules integration to D8.

This can be addressed in that other issue you opened #3141206: Updating event context after the rule's execution

TR’s picture

Issue summary: View changes

Added Previewable email templates

TR’s picture

Issue summary: View changes
Related issues: +#3224820: Rules integration

Added the "Registration codes" module.

TR’s picture

Added "Honeypot" and put the above list in alphabetical order.