- Issue created by @pdureau
- π«π·France just_like_good_vibes PARIS
Thank you Pierre, for writing down this issue.
I agree with the technical proposition & refactor, and i would like to add my opinion as you suggested.
First, i agree the method would be rather static, unless we found a specific case of Prop type where it wouldn't be statically callable (i don't have such example in mind right now).
Second, i would rather vote to call this method "sanitize" or "normalize".
The role of the method is to consolidate the value, clean it and conform it to the right "expectations" of the plugin.
The two names "sanitize" or "normalize" are quite close to the final processing. I have a little personal preference to sanitize, but normalize express better the idea to conform to the right format. - π«π·France pdureau Paris
Christian,
You can also remove the duplicate:
elseif (is_string($slot)) { $element['#slots'][$slot_id] = ['#markup' => $slot]; }
;)
- π©πͺGermany Christian.wiedemann
Christian.wiedemann β made their first commit to this issueβs fork.
- Merge request !79Issue #3424696: Add normalize to PropTypeInterface β (Merged) created by Christian.wiedemann
- Assigned to pdureau
- Status changed to Needs review
8 months ago 5:07pm 4 April 2024 -
pdureau β
committed 99c3e1ac on 2.0.x authored by
Christian.wiedemann β
Issue #3424696 by pdureau, Christian.wiedemann: Add PropTypeInterface::...
-
pdureau β
committed 99c3e1ac on 2.0.x authored by
Christian.wiedemann β
- Issue was unassigned.
- Status changed to Fixed
8 months ago 3:43pm 5 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.