function MessageForm::create

Same name in this branch
  1. 11.x core/modules/migrate/src/Form/MessageForm.php \Drupal\migrate\Form\MessageForm::create()
Same name in other branches
  1. 9 core/modules/contact/src/MessageForm.php \Drupal\contact\MessageForm::create()
  2. 8.9.x core/modules/contact/src/MessageForm.php \Drupal\contact\MessageForm::create()
  3. 10 core/modules/contact/src/MessageForm.php \Drupal\contact\MessageForm::create()
  4. 10 core/modules/migrate/src/Form/MessageForm.php \Drupal\migrate\Form\MessageForm::create()

Overrides ContentEntityForm::create

File

core/modules/contact/src/MessageForm.php, line 86

Class

MessageForm
Form controller for contact message forms.

Namespace

Drupal\contact

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity.repository'), $container->get('flood'), $container->get('language_manager'), $container->get('contact.mail_handler'), $container->get('date.formatter'), $container->get('entity_type.bundle.info'), $container->get('datetime.time'));
}

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