Closed (fixed)
Project:
Typed Entity
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2020 at 15:48 UTC
Updated:
8 Jul 2020 at 17:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
e0ipsoInitial proposal.
Comment #3
e0ipsoComment #4
hawkeye.twolfWow, this is cool. I think it will really help with separating front-end and back-end business logic.
After a quick review, I have one question/suggestion below but no blockers.
Could we use
WrappedEntityBase::toRenderable()here (after callingWrappedEntityBase::setViewMode())?Comment #5
e0ipsoThanks for the review Hawkeye!
That's a good point you raise. While implementing I got a moment of pause and asked myself: Should renderning an entity change the state of the entity?. For now that's what happens, since (as you already mention) we will need to call
WrappedEntityBase::setViewMode().This is why I think that for now might want to let this idea sit and stay vigilant for the need of it.
Comment #7
e0ipso