CountryFormTrait
Country edit form — translated name; ISO code, VAT id prefix, EU membership (flag + since/until), sort, active. Edit only (the ISO list is seeded by SQL).
Table of Contents
Methods
- createComponentEditForm() : Form
- addCountrySettingsFields() : void
- addCountryTranslationFields() : void
- saveCountryForm() : bool
- setCountryFormDefaults() : void
Methods
createComponentEditForm()
protected
createComponentEditForm() : Form
Return values
FormaddCountrySettingsFields()
private
addCountrySettingsFields(Form $form) : void
Parameters
- $form : Form
addCountryTranslationFields()
private
addCountryTranslationFields(Form $form) : void
Parameters
- $form : Form
saveCountryForm()
private
saveCountryForm(ArrayHash<string|int, mixed> $values) : bool
Parameters
- $values : ArrayHash<string|int, mixed>
Return values
boolsetCountryFormDefaults()
private
setCountryFormDefaults(Form $form) : void
Parameters
- $form : Form