function ImportForm::create

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

Overrides FormBase::create

File

core/modules/locale/src/Form/ImportForm.php, line 44

Class

ImportForm
Form constructor for the translation import screen.

Namespace

Drupal\locale\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('module_handler'), $container->get('language_manager'));
}

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