function RegisterForm::create

Same name and namespace in other branches
  1. 11.x core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::create()

Overrides AccountForm::create

File

core/modules/user/src/RegisterForm.php, line 52

Class

RegisterForm
Form handler for the user register forms.

Namespace

Drupal\user

Code

public static function create(ContainerInterface $container) : static {
  return new static($container->get(EntityRepositoryInterface::class), $container->get(LanguageManagerInterface::class), $container->get(EntityTypeBundleInfoInterface::class), $container->get(TimeInterface::class), $container->get(LoginFinalizer::class), $container->get(NotificationHandler::class));
}

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