Log in
Interface

RegionInformationInterface

Magento\Directory\Api\Data\RegionInformationInterface

What it does

This interface defines the contract for region (state/province) data objects in Magento 2.

Developers use this when working with geographical regions, such as displaying state dropdowns in address forms, validating shipping addresses, or retrieving region information through the API.

It provides methods to get and set region identifiers, codes (like 'CA' for California), and localized names.

Public Methods

  • getId()
  • setId()
  • getCode()
  • setCode()
  • getName()
  • setName()
  • getExtensionAttributes()
  • setExtensionAttributes()