Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 580 Bytes

state-model.md

File metadata and controls

29 lines (18 loc) · 580 Bytes

State Model

StateModel's have the following attributes and methods:

Attributes

id

The address record ID.

name

The countries name (required).

formatName

The states’ name followed by the states’ country in parenthesis. For example:

California (United States)

abbreviation

The states’s ISO code (required).

country

The Country Model of the country this state belongs to (required).

countryId

The record ID of the country this state belongs to (required).

cpEditUrl

A url to edit this state in the control panel.