public function PostalCodeSettingsForm::__construct in Postal Code 8
Constructs a \Drupal\postal_code\Form\PostalCodeSettingsFor object.
Parameters
\Drupal\Core\Locale\CountryManagerInterface $country_manager: The CountryManager service.
\Drupal\postal_code\PostalCodeValidationInterface $postal_code_validation: The PostalCodeValidation service.
Overrides ConfigFormBase::__construct
File
- src/
Form/ PostalCodeSettingsForm.php, line 48
Class
- PostalCodeSettingsForm
- Postal code admin settings form.
Namespace
Drupal\postal_code\FormCode
public function __construct(CountryManagerInterface $country_manager, PostalCodeValidationInterface $postal_code_validation) {
$this->countryManager = $country_manager;
$this->postalCodeValidation = $postal_code_validation;
$this->postalCodeSettings = $this
->config('postal_code.settings');
}