You are here

public function AccountForm::__construct in Zircon Profile 8

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

Constructs a new EntityForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

\Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query factory.

Overrides ContentEntityForm::__construct

2 calls to AccountForm::__construct()
ProfileForm::__construct in core/modules/user/src/ProfileForm.php
Constructs a new EntityForm object.
RegisterForm::__construct in core/modules/user/src/RegisterForm.php
Constructs a new EntityForm object.
2 methods override AccountForm::__construct()
ProfileForm::__construct in core/modules/user/src/ProfileForm.php
Constructs a new EntityForm object.
RegisterForm::__construct in core/modules/user/src/RegisterForm.php
Constructs a new EntityForm object.

File

core/modules/user/src/AccountForm.php, line 52
Contains \Drupal\user\AccountForm.

Class

AccountForm
Form controller for the user account forms.

Namespace

Drupal\user

Code

public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query) {
  parent::__construct($entity_manager);
  $this->languageManager = $language_manager;
  $this->entityQuery = $entity_query;
}