You are here

public static function LabelHelper::getDependentLocalityLabels in Address 8

Gets all dependent locality labels.

Return value

string[] The dependent locality labels, keyed by type.

1 call to LabelHelper::getDependentLocalityLabels()
LabelHelper::getDependentLocalityLabel in src/LabelHelper.php
Gets the dependent locality label for the given type.

File

src/LabelHelper.php, line 179

Class

LabelHelper
Provides translated labels for the library enums.

Namespace

Drupal\address

Code

public static function getDependentLocalityLabels() {
  return [
    DependentLocalityType::DISTRICT => t('District', [], [
      'context' => 'Address label',
    ]),
    DependentLocalityType::NEIGHBORHOOD => t('Neighborhood', [], [
      'context' => 'Address label',
    ]),
    DependentLocalityType::VILLAGE_TOWNSHIP => t('Village township', [], [
      'context' => 'Address label',
    ]),
    DependentLocalityType::SUBURB => t('Suburb', [], [
      'context' => 'Address label',
    ]),
    DependentLocalityType::TOWNLAND => t('Townland', [], [
      'context' => 'Address label',
    ]),
  ];
}