public function MobileNumberUtilInterface::getCountryOptions in Mobile Number 2.0.x
Same name and namespace in other branches
- 8 src/MobileNumberUtilInterface.php \Drupal\mobile_number\MobileNumberUtilInterface::getCountryOptions()
Get all supported countries.
Parameters
array $filter: Limit options to the ones in the filter. (Eg. ['IL' => 'IL', 'US' => 'US'].
bool $show_country_names: Whether to show full country name instead of country codes.
Return value
array Array of options, with country code as keys. (Eg. ['IL' => 'IL (+972)'])
1 method overrides MobileNumberUtilInterface::getCountryOptions()
- MobileNumberUtil::getCountryOptions in src/
MobileNumberUtil.php - Get all supported countries.
File
- src/
MobileNumberUtilInterface.php, line 198
Class
- MobileNumberUtilInterface
- Provides an interface for mobile number utility.
Namespace
Drupal\mobile_numberCode
public function getCountryOptions($filter = [], $show_country_names = FALSE);