Skip to content

SubdivisionRepository

Type
Class
Namespace
craft\addresses
Inherits
craft\addresses\SubdivisionRepository » CommerceGuys\Addressing\Subdivision\SubdivisionRepository
Since
4.5.0

Craft's extension of the commerceguys/addressing SubdivisionRepository.

Its main purpose is to allow addition of data that's not returned by the commerceguys/addressing library, like the GB counties data. It also triggers an event which allows developers to modify the subdivisions further.

View source

Public Methods

MethodDescription
getList()

getList()

View source

Arguments

  • $parents
  • $locale