It looks like at current level of revisions support in ContentEntityForm RevisionableContentEntityForm became obsolete and should be deleted.

There is number of issues reporting bugs in it like #2839956: RevisionableContentEntityForm::getBundleEntity() is broken for entities that use non-entity bundles, #2913439: Some revision fields are duplicated which from my understanding all fixable by not using RevisionableContentEntityForm and using ContentEntityForm and entity annotation correctly.

Happy to provide a patch if agreed.

Comments

RoSk0 created an issue. See original summary.

RoSk0’s picture

bojanz’s picture

Title: Remove RevisionableContentEntityForm ? » Remove RevisionableContentEntityForm
Category: Support request » Task

Agreed. ContentEntityForm now has everything that's needed.

bojanz’s picture

Title: Remove RevisionableContentEntityForm » Remove RevisionableContentEntityForm and EntityViewBuilder

Let's remove EntityViewBuilder at the same time, since it's the only other removal left.

  • bojanz committed 3df876b on 8.x-1.x
    Issue #2927013 by RoSk0, bojanz: Remove RevisionableContentEntityForm...
bojanz’s picture

Status: Active » Fixed

Done.

freelock’s picture

Hi,

This removal has led to #2952374: Update Media Entity to use 8.5.x APIs in Media Entity... I created a patch that changes the base form to \Drupal\Core\Entity\ContentEntityForm, but the tests are still failing because of a missing field:

1) Drupal\Tests\media_entity\Functional\MediaUiFunctionalTest::testMediaWithOnlyOneBundle
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "edit-revision" not found.

... any suggestions for what needs to change over there?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.