public static function LabelHelper::getPostalCodeLabels in Address 8
Gets all postal code labels.
Return value
string[] The postal code labels, keyed by type.
1 call to LabelHelper::getPostalCodeLabels()
- LabelHelper::getPostalCodeLabel in src/
LabelHelper.php - Gets the postal code label for the given type.
File
- src/
LabelHelper.php, line 214
Class
- LabelHelper
- Provides translated labels for the library enums.
Namespace
Drupal\addressCode
public static function getPostalCodeLabels() {
return [
PostalCodeType::EIR => t('Eircode', [], [
'context' => 'Address label',
]),
PostalCodeType::PIN => t('Pin code', [], [
'context' => 'Address label',
]),
PostalCodeType::POSTAL => t('Postal code', [], [
'context' => 'Address label',
]),
PostalCodeType::ZIP => t('Zip code', [], [
'context' => 'Address label',
]),
];
}