Log in
Interface

RegionInterface

Magento\Customer\Api\Data\RegionInterface

What it does

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

Developers use it when working with customer addresses to access or manipulate region information, including the region name, region code (abbreviation), and region ID.

It's commonly used in checkout, customer account management, and anywhere geographic regions need to be handled programmatically.

Public Methods

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