Log in
Interface

RegionInterface

Magento\Customer\Api\Data\RegionInterface

What it does

This interface defines the contract for handling customer address region data in Magento 2.

Developers use it when working with customer addresses to get or set region information including the region name, region code (like 'CA' for California), and region ID.

It's commonly used in checkout processes, customer account management, and anywhere customer address data needs to be processed or displayed.

Public Methods

  • getRegionCode()
  • setRegionCode()
  • getRegion()
  • setRegion()
  • getRegionId()
  • setRegionId()
  • getExtensionAttributes()
  • setExtensionAttributes()