PasswordGeneratorInterface.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\Core\PasswordFile
core/lib/Drupal/Core/Password/PasswordGeneratorInterface.phpView source
<?php
namespace Drupal\Core\Password;
/**
* Interface for generating passwords.
*/
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;
}Interfaces
|
Name |
Description |
|---|---|
| PasswordGeneratorInterface | Interface for generating passwords. |