The ModerationState entity defines a 'canonical' link in the entity annotation, but doesn't provide a route in yml or a route_provider.
I have attached two patches:
route_provider.patch
This defines a route provider which should make a canonical route, but doesn't seem to work. So this needs debugging and fixing if it's the right options.
no_canonical.patch
This just removes the canonical link from the moderation state entity annotation.
Both of these should fix the issue reported in the multiversion queue (https://www.drupal.org/node/2665668) but only no_canonical.patch seems to work when I test.
Comment | File | Size | Author |
---|---|---|---|
route_provider.patch | 1.71 KB | timmillwood | |
no_canonical.patch | 641 bytes | timmillwood | |
Comments
Comment #5
timmillwoodI think the route_provider.patch isn't working because ModerationState doesn't have a view_builder.
Comment #6
josephdpurcell CreditAttribution: josephdpurcell at Palantir.net for Acquia commentedIn testing this issue locally, I ran into this issue #2669328: InlineEditingDisabler attempts to run on non-moderatable entities
After resolving that, I can see that the "no_canonical.patch" works. For now, I think the best approach is to simply remove the canonical link.
Even though I don't believe that is the desired solution long term, this avoids WorkBench from breaking in this way.
Comment #8
josephdpurcell CreditAttribution: josephdpurcell at Palantir.net for Acquia commented