- Issue created by @dpi
- πͺπΈSpain marcoscano Barcelona, Spain
Thanks for proposing this!
Are there many non-node content entities out there that are also created in a "standalone" workflow? (as opposed to an "inline" creation workflow, in the context of other content content edit form). I might not have come across this a lot in the past, so my first reaction is that this wouldn't be too common, in which case I'd rather this to either be a separate project, or sub-module, if possible.
- π¦πΊAustralia dpi Perth, Australia
@marcoscano are you asking if there are other content entities that live standalone, just like a node?
I've worked on many projects, and can say there are many many instances of this.
If you'd accept the idea, I'll see if I can find some project time for it.
- πͺπΈSpain marcoscano Barcelona, Spain
That's fine π
My question was probably because from memory, the only projects where I recall non-node entities having their own standalone page were commerce projects. Most scenarios of other custom entities I remember were components of the page, in which case a type-tray-style "Add..." page wouldn't make too much sense (because components are normally more easily created inline, in the context of their parent page). That said, maybe this is a fair request just to support commerce sites, if nothing else... :)
Also, as long as the new entity type implements
ThirdPartySettingsInterface
, it should be possible to abstract our controller and other relevant code to be agnostic of the type of the entity we should affect. So it would be fine to refactor the existing implementation to be generic, if we can do that without too much work πI could see a new global setting with checkboxes along the lines of "Entity Types to apply Type Tray", with only "Node" selected by default, where admins could opt in other entity types, does that align with what you had in mind?
Thanks again!
- π¦πΊAustralia dpi Perth, Australia
If an entity type has all the right features enabled (interfaces, annotation, routeing etc) I think we can just enable it automatically.
For instance, Scheduled Transitions β is a project I manage which automatically, and only, allows features for entity types if it has the right features. E.g all the interfaces and things required for Workflows and Content Moderation
But it would make sense to have some kind of switch regardless, either for a entity type or bundle.
I think this can be fleshed out as this is developed, however.
My target would be getting the Entity Test entities work.
- πΊπΈUnited States MegaKeegMan
This would be super helpful. I would like this capability for taxonomy terms, but I'm sure it would be great on many other entity types.