function ContactFormEditForm::__construct

Same name in other branches
  1. 9 core/modules/contact/src/ContactFormEditForm.php \Drupal\contact\ContactFormEditForm::__construct()
  2. 10 core/modules/contact/src/ContactFormEditForm.php \Drupal\contact\ContactFormEditForm::__construct()
  3. 11.x core/modules/contact/src/ContactFormEditForm.php \Drupal\contact\ContactFormEditForm::__construct()

Constructs a new ContactFormEditForm.

Parameters

\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator service.

File

core/modules/contact/src/ContactFormEditForm.php, line 45

Class

ContactFormEditForm
Base form for contact form edit forms.

Namespace

Drupal\contact

Code

public function __construct(EmailValidatorInterface $email_validator, PathValidatorInterface $path_validator) {
    $this->emailValidator = $email_validator;
    $this->pathValidator = $path_validator;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.