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.
processDefinition() is not part of PluginManagerInterface. The only reason it's public in PluginManagerBase is because ProcessDecorator needs to be able to call it. Here's a workaround to that.
Comment | File | Size | Author |
---|---|---|---|
#25 | 1871710-25.patch | 2.61 KB | sahil.goyal |
#9 | drupal_1871710_9.patch | 2.57 KB | Xano |
#9 | interdiff.txt | 1.05 KB | Xano |
Comments
Comment #1
effulgentsia CreditAttribution: effulgentsia commentedNote that PHP 5.4 allows closures to access $this and its corresponding private/protected members, but D8 still needs to support PHP 5.3.
Comment #2
tim.plunketto_O
That is... sneaky.
Comment #3
yched CreditAttribution: yched commentedLol, same face as @tim.plunkett.
I'm not sure why it's a problem that processDefinition() is public, but the cure, although smart, looks way uglier than the disease :-p
Comment #5
effulgentsia CreditAttribution: effulgentsia commentedAgreed that this still needs work. In general, the problem with methods being public is that you're then locked into them during an entire major release. Though that may also be true for protected methods in base classes intended for contrib to extend.
Comment #6
Xano.
Comment #8
Xano.
Comment #9
XanoThe patch from #8 contains a recent core commit. This is the correct one.
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedPatch no longer applies.
If still needed.
Comment #25
sahil.goyal CreditAttribution: sahil.goyal as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedAs commented #24 patch was too old and doesn't get applies for the version 9.4.x-dev, updating the reroll of the patch, Not known that why i'm not able to upload intera_diff/Diff_reroll so sorry for that.
Comment #26
smustgrave CreditAttribution: smustgrave at Mobomo commentedComment #27
elberHi @sahil.goyal don't worry we can fix it together I will try to do a rerrol and after that you can to review
Comment #28
smustgrave CreditAttribution: smustgrave at Mobomo commented#25 applies cleanly for 10.1 currently running the tests.
Comment #29
smustgrave CreditAttribution: smustgrave at Mobomo commentedBefore anyone spends more time fixing the patch wonder if this is still wanted? Been 10 years since it was brought up.
Comment #30
smustgrave CreditAttribution: smustgrave at Mobomo commentedClosing this as outdated as there hasn't been a follow up in 5 months. if still a valid task please reopen updating the issue summary with a proposed solution, remaining tasks, api changes, etc.
Thanks