You are here

protected function SimpleFbConnectUserManager::userPassword in Simple FB Connect 8.2

Same name and namespace in other branches
  1. 8.3 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 488
Contains \Drupal\simple_fb_connect\SimpleFbConnectUserManager.

Class

SimpleFbConnectUserManager
Contains all logic that is related to Drupal user management.

Namespace

Drupal\simple_fb_connect

Code

protected function userPassword($length) {
  return user_password($length);
}