Closed (fixed)
Project:
Revision Manager
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Nov 2025 at 09:03 UTC
Updated:
31 Dec 2025 at 17:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
j-barnes commented@heyyo - Added support for canvas_page in the above MR.
Canvas pages don't define a bundle entity type (similar to menu_link_content), so I extended the pseudo-bundle pattern we already had in place. Added a hasBundles() helper to EntityHelper to clean up the conditionals and hide the bundle override table in the admin UI since there's nothing to configure per-bundle.
Since Canvas requires Drupal 11.2+, the CI configuration conditionally installs it only on compatible jobs and excludes the Canvas tests on D10/D11.1 runs. Took a bit of trial and error to get that working, but we got there.
I don't have a lot of hands-on time with Canvas yet, so if you could give it a spin and let me know how it goes, that would be awesome. Happy to refine as needed.
Comment #5
j-barnes commentedComment #6
heyyo commentedWouah it was quick !

I tested locally, and it did the job. I was able to set number of revisions for Canvas page to keep only 3.
After running cron, my older revisions of my canvas pages were gone !
Also I checked the presence of logs in watchdog
So it looks good to me, but maybe better to ask canvas developers to verify everything is expected.
Comment #7
j-barnes commentedThanks for testing this out. Good to hear it's working on your end. Going to have our team try it out too, they've been wanting to give Canvas a go so this gives us a good excuse.
Comment #8
sunny-lee commentedTested this on a fresh d11 install. Set canvas/page for 3 revisions and also 5 revisions. Created a variety of revisions over 10 both times and after running the cron revision manager, revision manager successfully removed when set for 3 and successfully removed for 5 when set for 5 for the canvas pages. Also tried old functionality with basic pages and it's working as expected. All good here!
Comment #9
j-barnes commentedThanks all for the help with this!