Commit b3cd8487 authored by webchick's avatar webchick

Issue #1800174 by Mile23, Lars Toomre, rishikant05, YesCT, idebr, Jalandhar,...

Issue #1800174 by Mile23, Lars Toomre, rishikant05, YesCT, idebr, Jalandhar, jhodgdon, dawehner: Add missing type hinting to User module docblocks
parent 6889e50f
...@@ -46,7 +46,7 @@ abstract class AccountForm extends ContentEntityForm { ...@@ -46,7 +46,7 @@ abstract class AccountForm extends ContentEntityForm {
* The entity manager. * The entity manager.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager. * The language manager.
* @param \Drupal\Core\Entity\Query\QueryFactory * @param \Drupal\Core\Entity\Query\QueryFactory $entity_query
* The entity query factory. * The entity query factory.
*/ */
public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query) { public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query) {
......
...@@ -149,11 +149,15 @@ function testPasswordRehashOnLogin() { ...@@ -149,11 +149,15 @@ function testPasswordRehashOnLogin() {
/** /**
* Make an unsuccessful login attempt. * Make an unsuccessful login attempt.
* *
* @param $account * @param \Drupal\user\Entity\User $account
* A user object with name and pass_raw attributes for the login attempt. * A user object with name and pass_raw attributes for the login attempt.
* @param $flood_trigger * @param mixed $flood_trigger
* Whether or not to expect that the flood control mechanism will be * (optional) Whether or not to expect that the flood control mechanism
* triggered. * will be triggered. Defaults to NULL.
* - Set to 'user' to expect a 'too many failed logins error.
* - Set to any value to expect an error for too many failed logins per IP
* .
* - Set to NULL to expect a failed login.
*/ */
function assertFailedLogin($account, $flood_trigger = NULL) { function assertFailedLogin($account, $flood_trigger = NULL) {
$edit = array( $edit = array(
......
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
* Expensive operations should be added to the global account cancellation batch * Expensive operations should be added to the global account cancellation batch
* by using batch_set(). * by using batch_set().
* *
* @param $edit * @param array $edit
* The array of form values submitted by the user. * The array of form values submitted by the user.
* @param $account * @param \Drupal\Core\Session\AccountInterface $account
* The user object on which the operation is being performed. * The user object on which the operation is being performed.
* @param $method * @param string $method
* The account cancellation method. * The account cancellation method.
* *
* @see user_cancel_methods() * @see user_cancel_methods()
...@@ -81,7 +81,7 @@ function hook_user_cancel($edit, $account, $method) { ...@@ -81,7 +81,7 @@ function hook_user_cancel($edit, $account, $method) {
* a method. If 'access' is defined, the method cannot be configured as * a method. If 'access' is defined, the method cannot be configured as
* default method. * default method.
* *
* @param $methods * @param array $methods
* An array containing user account cancellation methods, keyed by method id. * An array containing user account cancellation methods, keyed by method id.
* *
* @see user_cancel_methods() * @see user_cancel_methods()
...@@ -111,10 +111,10 @@ function hook_user_cancel_methods_alter(&$methods) { ...@@ -111,10 +111,10 @@ function hook_user_cancel_methods_alter(&$methods) {
* displayed. Can be used to ensure user privacy in situations where * displayed. Can be used to ensure user privacy in situations where
* $account->name is too revealing. * $account->name is too revealing.
* *
* @param $name * @param string $name
* The string that user_format_name() will return. * The string that user_format_name() will return.
* *
* @param $account * @param object $account
* The account object passed to user_format_name(). * The account object passed to user_format_name().
* *
* @see user_format_name() * @see user_format_name()
...@@ -129,7 +129,7 @@ function hook_user_format_name_alter(&$name, $account) { ...@@ -129,7 +129,7 @@ function hook_user_format_name_alter(&$name, $account) {
/** /**
* The user just logged in. * The user just logged in.
* *
* @param $account * @param object $account
* The user object on which the operation was just performed. * The user object on which the operation was just performed.
*/ */
function hook_user_login($account) { function hook_user_login($account) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment