public static function LabelHelper::getAdministrativeAreaLabel in Address 8
Gets the administrative area label for the given type.
Parameters
string $administrative_area_type: The administrative area type.
Return value
string The administrative area label.
1 call to LabelHelper::getAdministrativeAreaLabel()
- LabelHelper::getFieldLabels in src/
LabelHelper.php - Gets the field labels suitable for the given address format.
File
- src/
LabelHelper.php, line 86
Class
- LabelHelper
- Provides translated labels for the library enums.
Namespace
Drupal\addressCode
public static function getAdministrativeAreaLabel($administrative_area_type) {
if (!$administrative_area_type) {
return NULL;
}
AdministrativeAreaType::assertExists($administrative_area_type);
$labels = self::getAdministrativeAreaLabels();
return $labels[$administrative_area_type];
}