- Issue created by @f.mazeikis
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@tedbow added
ClientServerConversionTrait
in β¨ AutoSave Entity Revision POC Active .I know that @larowlan has a clear idea in his head for how we should approach this. (In another issue I commented in the past hour he was talking about a PHP value object to contain the client-side data model β but I can't find it now π)
Alternatively, I could imagine
::toClientSideRepresentation(): ClientSide
and::fromClientSideRepresentation(ClientSide $representation)
being added to:ComponentTreeItem
PageTemplate
Pattern
- β¦
β¦ and for them to share common logic using a trait.
I'm curious what @larowlan thinks π
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@larowlan: perhaps you think we should close this in favor of π Add a param converter and DTO for XB data model Active ? :)
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
While working on π Improve or remove ComponentSourceInterface::getClientSideInfo() Active , it became clear that a related challenge appeared there, which relates closely to what I wrote in #2. See https://git.drupalcode.org/issue/experience_builder-3484678/-/tree/34846..., described in #3484678-20: Improve or remove ComponentSourceInterface::getClientSideInfo() β , @larowlan π€
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
ClientSideRepresentation
landed in π Improve or remove ComponentSourceInterface::getClientSideInfo() Active , but it's kinda like JSON:API'sCacheableNormalization
.It's not doing the much more advanced transformation that this issue is suggesting/implying. But β¦ I'd definitely be interested in seeing it evolve towards that.
Curious to read @larowlan's thoughts!
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Looking good Wim, great stuff