Spin-off from #1499596-96: Introduce a basic entity form controller:

I've not touched the new entity.module helpers much, in particular the $operation related handling. I'm no fan of the $operation term, while I think introducing the concept makes sense. It's the analogy the view-modes for entity-forms and if field API would support it, it would help a lot to ease customizing registration forms or configuring different form-widgets for searching? I think this needs some more though and probably a rename as it doesn't map to operation (that would be e.g 'delete', 'create'?). Anyway, given that this blocks some further important work I guess we can care about that in a follow-up.

To be completed.


sun’s picture

Issue tags: +Field system

It sounds like the suggested $operation maps 1:1 to the "Manage Fields" Field UI pages?

Ah-ha! I just see and realize that we only have view modes on "Manage Display", but no equivalent on "Manage Fields" :)

I'm pretty sure that I've seen an issue for that in the past already... but can't find it right now.

Berdir’s picture

Updating tags.

andypost’s picture

We have EntityFormMode & EntityViewMode config entities and manage screens for both
So should they auto-created to map 1:1 to operations?

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.