function RegisterForm::__construct

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

Constructs a new AccountForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides AccountForm::__construct

File

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

Class

RegisterForm
Form handler for the user register forms.

Namespace

Drupal\user

Code

public function __construct(EntityRepositoryInterface $entity_repository, LanguageManagerInterface $language_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, protected LoginFinalizer $loginFinalizer, protected NotificationHandler $notificationHandler) {
  parent::__construct($entity_repository, $language_manager, $entity_type_bundle_info, $time);
}

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