public function CountryAutocompleteController::__construct in Country 8
Constructs a new CountryAutocompleteController.
Parameters
\Drupal\Core\Locale\CountryManagerInterface $country_manager: The country manager.
\Drupal\country\CountryFieldManager $country_field_manager: The country field manager.
File
- src/
Controller/ CountryAutocompleteController.php, line 40
Class
- CountryAutocompleteController
- Returns autocomplete responses for countries.
Namespace
Drupal\country\ControllerCode
public function __construct(CountryManagerInterface $country_manager, CountryFieldManager $country_field_manager) {
$this->countryManager = $country_manager;
$this->countryFieldManager = $country_field_manager;
}