You are here

public function CountryManager::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Locale/CountryManager.php \Drupal\Core\Locale\CountryManager::__construct()
  2. 10 core/lib/Drupal/Core/Locale/CountryManager.php \Drupal\Core\Locale\CountryManager::__construct()

Constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

File

core/lib/Drupal/Core/Locale/CountryManager.php, line 29

Class

CountryManager
Provides list of countries.

Namespace

Drupal\Core\Locale

Code

public function __construct(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}