UnitFormTrait
Unit of measure form.
Only the full name is translated. The code abbreviation is deliberately not translated:
it is printed next to quantities and must be identical across languages, otherwise it
could not be matched.
Table of Contents
Methods
- createComponentEditForm() : Form
- saveUnitForm() : bool
- setUnitFormDefaults() : void
Methods
createComponentEditForm()
protected
createComponentEditForm() : Form
Return values
FormsaveUnitForm()
private
saveUnitForm(ArrayHash<string|int, mixed> $values) : bool
Parameters
- $values : ArrayHash<string|int, mixed>
Return values
boolsetUnitFormDefaults()
private
setUnitFormDefaults(Form $form) : void
Parameters
- $form : Form