public static function MergeTranslationsForm::create in Merge translations 8
Dependency injection.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: Container.
Return value
\Drupal\Core\Form\FormBase|\Drupal\merge_translations\Form\mergeTranslationsForm MergeTranslation form.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides FormBase::create
File
- src/
Form/ MergeTranslationsForm.php, line 132
Class
- MergeTranslationsForm
- The merge translation form.
Namespace
Drupal\merge_translations\FormCode
public static function create(ContainerInterface $container) {
return new static($container
->get('entity_type.manager'), $container
->get('current_route_match'), $container
->get('language_manager'), $container
->get('messenger'), $container
->get('module_handler'), $container
->get('current_user'));
}