function TranslateFormBase::create

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

Overrides FormBase::create

File

core/modules/locale/src/Form/TranslateFormBase.php, line 65

Class

TranslateFormBase
Defines the locale user interface translation form base.

Namespace

Drupal\locale\Form

Code

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

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