diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 928afdc..d47265e 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -600,7 +600,7 @@ function user_pass_reset_url($account, $options = array()) { * @see user_mail_tokens() * @see \Drupal\user\Controller\UserController::confirmCancel() */ -function user_cancel_url(\Drupal\user\UserInterface $account, $options = array()) { +function user_cancel_url(UserInterface $account, $options = array()) { $timestamp = REQUEST_TIME; $langcode = isset($options['langcode']) ? $options['langcode'] : $account->getPreferredLangcode(); $url_options = array('absolute' => TRUE, 'language' => \Drupal::languageManager()->getLanguage($langcode)); @@ -632,7 +632,7 @@ function user_cancel_url(\Drupal\user\UserInterface $account, $options = array() * @return string * A string that is safe for use in URLs and SQL statements. */ -function user_pass_rehash(\Drupal\user\UserInterface $account, $timestamp) { +function user_pass_rehash(UserInterface $account, $timestamp) { // Build $data to include unique elements in this token. $data = $timestamp . $account->getLastLoginTime() .