protected function USPSRateRequest::translateServiceLables in Commerce USPS 8
Utility function to translate service labels.
Parameters
string $service_code: The service code.
Return value
string The translated service code.
File
- src/
USPSRateRequest.php, line 148
Class
- USPSRateRequest
- Class USPSRateRequest.
Namespace
Drupal\commerce_uspsCode
protected function translateServiceLables($service_code) {
$label = '';
if (strtolower($service_code) == 'parcel') {
$label = 'ground';
}
return $label;
}