Log in
Model

Region

Magento\Directory\Model\Region

What it does

This model class represents a geographic region (state/province) within a country in Magento 2's directory system.

Developers use this class to retrieve region information by ID, code, or name, typically when handling address data, customer registration, or checkout processes where country/region selection is required.

Public Methods

  • getName()
  • loadByCode()
  • loadByName()