You are here

public function MobileNumberUtilInterface::getCountryOptions in Mobile Number 8

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

Code

public function getCountryOptions($filter = [], $show_country_names = FALSE);