Problem/Motivation

We want to be able to change the Form and Display modes for Licenses;

  • changing the fields shown and what widget is used on forms, and
  • changing the fields shown and the formatted used on display, with the option for multiple display modes

Proposed resolution

Use the handlers provided in #3030569: provide a Field UI for bundle plugin-based entity types

Remaining tasks

Comments

dwkitchen created an issue. See original summary.

dwkitchen’s picture

Issue summary: View changes
danmer’s picture

Here is the patch

danmer’s picture

Status: Active » Needs review
nigelcunningham’s picture

I've just given this patch a try and it didn't work for me. When clearing caches, I got a bunch of errors:

Original data:
'string' PluginTypeBasedConverterTrait.php:136
[warning] Error while validating the route parameter definition in item : This value should be of type array|(Traversable&ArrayAccess).

I was able to address them by modifying commerce_license.routing.yml to:

    parameters:
      bundle:
        type: entity:commerce_license

But am then not able to access the field UI pages. I'm only trying this patch as part of preparing an estimate for some work, so I'll do more once the ticket is approved.

nigelcunningham’s picture

Hmm... perhaps I just needed another cache clear because I can now see the interface :)

jsacksick’s picture

Status: Needs review » Fixed

Committed.

  • jsacksick committed 5f38525 on 8.x-2.x authored by danmer
    Issue #3218668 by danmer: Enable Field UI for License Types.
    

  • jsacksick committed 97473f6 on 8.x-2.x
    Issue #3218668 followup: Commit missing routes and controller.
    

Status: Fixed » Closed (fixed)

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