You are here

public function MobileNumberUtilInterface::getCountry in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 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_number

Code

public function getCountry(PhoneNumber $mobile_number);