Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Password/PasswordGeneratorInterface.php \Drupal\Core\Password\PasswordGeneratorInterface

Interface for generating passwords.

Hierarchy

Expanded class hierarchy of PasswordGeneratorInterface

All classes that implement PasswordGeneratorInterface

File

core/lib/Drupal/Core/Password/PasswordGeneratorInterface.php, line 8

Namespace

Drupal\Core\Password
View 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