You are here

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

Same name and namespace in other branches
  1. 8 src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::getCountryCode()

Gets the country phone number prefix given a country code.

Parameters

string $country: Country code (Eg. IL).

Return value

int Country phone number prefix (Eg. 972).

1 method overrides MobileNumberUtilInterface::getCountryCode()
MobileNumberUtil::getCountryCode in src/MobileNumberUtil.php
Gets the country phone number prefix given a country code.

File

src/MobileNumberUtilInterface.php, line 150

Class

MobileNumberUtilInterface
Provides an interface for mobile number utility.

Namespace

Drupal\mobile_number

Code

public function getCountryCode($country);