I had this issue when referencing Taxonomy Terms.
When an Entity does not define an edit form in the Entity annotations, the edit button does not work because the controller is looking for the edit form class. When debugging through core code, I noticed the following code:

      // Use the edit form handler, if available, otherwise default.
      $operation = 'default';
      if ($entity_type->getFormClass('edit')) {
        $operation = 'edit';
      }

This is part of the route generator for entity types. I edited the controller code to do something like this, and the edit button started working.

Comments

jeroen.b created an issue. See original summary.

jeroen.b’s picture

Status: Active » Needs review
StatusFileSize
new1018 bytes
sanju1092101’s picture

Worked fine for me.

sanju1092101’s picture

Status: Needs review » Reviewed & tested by the community

  • slashrsm committed d9b4ba0 on 8.x-1.x authored by jeroen.b
    Issue #2912628 by jeroen.b: Edit button does not work when Entity does...
slashrsm’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

  • slashrsm committed ee9e525 on 8.x-2.x authored by jeroen.b
    Issue #2912628 by jeroen.b: Edit button does not work when Entity does...

Status: Fixed » Closed (fixed)

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