function MessageForm::create

Same name in this branch
  1. 11.x core/modules/contact/src/MessageForm.php \Drupal\contact\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 FormBase::create

File

core/modules/migrate/src/Form/MessageForm.php, line 20

Class

MessageForm
Migrate messages form.

Namespace

Drupal\migrate\Form

Code

public static function create(ContainerInterface $container) {
    $form = new static();
    $form->setStringTranslation($container->get('string_translation'));
    return $form;
}

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