Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
"dynamic: allows on-the-fly creation of registration codes" - this feature is missing from the 8.x version.
Proposed resolution
Create Event dispatcher for custom validation.
Comment | File | Size | Author |
---|---|---|---|
#10 | dynamic-regcodes-event-dispatcher_3362786-10.diff | 6.21 KB | trigdog |
Comments
Comment #2
trigdog CreditAttribution: trigdog commentedComment #3
TR CreditAttribution: TR commentedMoved to NR to trigger testing.
Comment #5
trigdog CreditAttribution: trigdog commentedFixing coding standard issues.
Comment #6
trigdog CreditAttribution: trigdog commentedPatch didn't attach, trying again.
Comment #7
trigdog CreditAttribution: trigdog commentedComment #10
trigdog CreditAttribution: trigdog commentedMissed a couple. Hopefully this one is good.
Comment #11
trigdog CreditAttribution: trigdog commentedHere is an example of how to use this on your site:
In a custom module create a services file (ex. - mymodule.services.yml) file and an event subscriber (ex. - src/Event/MyModuleRegcodeSubscriber.php):