public static function AddressTrait::makeCanonical in Ubercart 8.4
File
- uc_store/
src/ AddressTrait.php, line 303
Class
- AddressTrait
- Defines a trait implementing \Drupal\uc_store\AddressInterface.
Namespace
Drupal\uc_storeCode
public static function makeCanonical($string = '') {
// Remove all whitespace.
$string = preg_replace('/\\s+/', '', $string);
// Make all characters upper case.
$string = mb_strtoupper($string);
return $string;
}