protected function SimpleFbConnectUserManager::userPassword in Simple FB Connect 8.3
Same name and namespace in other branches
- 8.2 src/SimpleFbConnectUserManager.php \Drupal\simple_fb_connect\SimpleFbConnectUserManager::userPassword()
Wrapper for user_password.
We need to wrap the legacy procedural Drupal API functions so that we are not using them directly in our own methods. This way we can unit test our own methods.
See also
user_password
1 call to SimpleFbConnectUserManager::userPassword()
- SimpleFbConnectUserManager::createUser in src/
SimpleFbConnectUserManager.php - Create a new user account.
1 method overrides SimpleFbConnectUserManager::userPassword()
- TestSimpleFbConnectUserManager::userPassword in tests/
src/ Unit/ TestSimpleFbConnectUserManager.php - Overrides userPassword.
File
- src/
SimpleFbConnectUserManager.php, line 606
Class
- SimpleFbConnectUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\simple_fb_connectCode
protected function userPassword($length) {
return user_password($length);
}