function CountryManager::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Locale/CountryManager.php \Drupal\Core\Locale\CountryManager::__construct()
- 10 core/lib/Drupal/Core/Locale/CountryManager.php \Drupal\Core\Locale\CountryManager::__construct()
- 11.x 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\LocaleCode
public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.