Closed (won't fix)
Project:
Physical Fields
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2017 at 19:31 UTC
Updated:
16 Feb 2020 at 23:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rwhirn commentedI created a new Dimensions class and added a setValue() method to DimensionsItem.
Attached is a patch.
Comment #3
rwhirn commentedComment #4
ryross commentedUploading a revised patch run from the module's directory so that the paths are correct.
Comment #5
savel commented#4 works fine.
When it will be commited we should consider adding an unit conversion method.
Comment #6
bojanz commentedI don't understand which problems this patch is solving. And I don't understand what is meant by the "render and entity class" bit in the original comment.
Right now the way to set a dimensions field is the same as with any complex Drupal field:
This patch adds a Dimension value object. I am not convinced that we want to do this, cause we'd need to reimplement all arithmetic and comparison methods that measurements have.
Comment #7
bojanz commentedPer #6 and a lack of responses/interest since.