Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Password/PasswordGeneratorInterface.php \Drupal\Core\Password\PasswordGeneratorInterface
Interface for generating passwords.
Hierarchy
- interface \Drupal\Core\Password\PasswordGeneratorInterface
Expanded class hierarchy of PasswordGeneratorInterface
All classes that implement PasswordGeneratorInterface
File
- core/
lib/ Drupal/ Core/ Password/ PasswordGeneratorInterface.php, line 8
Namespace
Drupal\Core\PasswordView source
interface PasswordGeneratorInterface {
/**
* Generates a password.
*
* @param int $length
* (optional) The length of the password.
*
* @return string
* The password.
*/
public function generate(int $length = 10) : string;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PasswordGeneratorInterface:: |
public | function | Generates a password. |