Put a config value on the media bundle that will enable or disable new revisions.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff.txt | 9.05 KB | slashrsm |
| #5 | 2716737_5.patch | 23.54 KB | slashrsm |
| #4 | interdiff.txt | 19.21 KB | slashrsm |
| #4 | 2716737_4.patch | 20.91 KB | slashrsm |
| #2 | 2716737_1.patch | 4.69 KB | slashrsm |
Comments
Comment #2
slashrsm commentedPatch is based on https://github.com/drupal-media/media_entity/pull/70/files
Comment #3
slashrsm commentedComment #4
slashrsm commentedImproved #2:
- Relying on Entity API to provide revisionable entity form
- improved test coverage
- also fixes #2626038: Write test coverage for media revisions
Comment #5
slashrsm commented@paranojik reviewed this. He suggested to mention required Entity API version in the exception message and to move "Create new revision" checkbox to the Publishing options group. I moved "Queue thumbnail downloads" there too.
Comment #6
slashrsm commentedCommitted.
Comment #8
lodey commentedHi There,
I'm getting this message on running an install with the latest dev build of the module.
PHP Fatal error: Interface 'Drupal\entity\Entity\RevisionableEntityBundleInterface' not found in /var/www/public/modules/media_entity/src/MediaBundleInterface.php on line 11Line 6 : use Drupal\entity\Entity\RevisionableEntityBundleInterface -- this gives me an undefined class notice.
Am I missing another dependency or version upgrade somewhere? Running core 8.1.
Thanks
Comment #9
lodey commented... scratch that.
I'm building an installation profile and was missing the entity module.... pretty obvious one!
Thanks.