public function MobileNumberUtilInterface::getCountry in Mobile Number 8
Same name and namespace in other branches
- 2.0.x src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::getCountry()
Get country code.
Parameters
\libphonenumber\PhoneNumber $mobile_number: Phone number object.
Return value
string Country code.
1 method overrides MobileNumberUtilInterface::getCountry()
- MobileNumberUtil::getCountry in src/
MobileNumberUtil.php - Get country code.
File
- src/
MobileNumberUtilInterface.php, line 117
Class
- MobileNumberUtilInterface
- Provides an interface for mobile number utility.
Namespace
Drupal\mobile_numberCode
public function getCountry(PhoneNumber $mobile_number);