function ContactFormEditForm::create

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

Overrides FormBase::create

File

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

Class

ContactFormEditForm
Base form for contact form edit forms.

Namespace

Drupal\contact

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('email.validator'), $container->get('path.validator'));
}

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