public static function LabelHelper::getAdministrativeAreaLabels in Address 8
Gets all administrative area labels.
Return value
string[] The administrative area labels, keyed by type.
1 call to LabelHelper::getAdministrativeAreaLabels()
- LabelHelper::getAdministrativeAreaLabel in src/
LabelHelper.php - Gets the administrative area label for the given type.
File
- src/
LabelHelper.php, line 102
Class
- LabelHelper
- Provides translated labels for the library enums.
Namespace
Drupal\addressCode
public static function getAdministrativeAreaLabels() {
return [
AdministrativeAreaType::AREA => t('Area', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::CANTON => t('Canton', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::COUNTY => t('County', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::DEPARTMENT => t('Department', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::DISTRICT => t('District', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::DO_SI => t('Do si', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::EMIRATE => t('Emirate', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::ISLAND => t('Island', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::OBLAST => t('Oblast', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::PARISH => t('Parish', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::PREFECTURE => t('Prefecture', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::PROVINCE => t('Province', [], [
'context' => 'Address label',
]),
AdministrativeAreaType::STATE => t('State', [], [
'context' => 'Address label',
]),
];
}