function AccountSettingsForm::__construct
Same name in other branches
- 9 core/modules/user/src/AccountSettingsForm.php \Drupal\user\AccountSettingsForm::__construct()
- 10 core/modules/user/src/AccountSettingsForm.php \Drupal\user\AccountSettingsForm::__construct()
- 11.x core/modules/user/src/AccountSettingsForm.php \Drupal\user\AccountSettingsForm::__construct()
Constructs a \Drupal\user\AccountSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\user\RoleStorageInterface $role_storage: The role storage.
Overrides ConfigFormBase::__construct
File
-
core/
modules/ user/ src/ AccountSettingsForm.php, line 44
Class
- AccountSettingsForm
- Configure user settings for this site.
Namespace
Drupal\userCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, RoleStorageInterface $role_storage) {
parent::__construct($config_factory);
$this->moduleHandler = $module_handler;
$this->roleStorage = $role_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.