interface PasswordConstraintInterface in Password Policy 8.3
An interface to define the expected operations of a password constraint.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\password_policy\PasswordConstraintInterface
Expanded class hierarchy of PasswordConstraintInterface
All classes that implement PasswordConstraintInterface
File
- src/
PasswordConstraintInterface.php, line 13
Namespace
Drupal\password_policyView source
interface PasswordConstraintInterface extends PluginInspectionInterface, ConfigurableInterface, PluginFormInterface {
/**
* Returns a true/false status if the password meets the constraint.
*
* @param string $password
* The password entered by the end user.
* @param \Drupal\user\UserInterface
* The user which password is changed.
*
* @return PasswordPolicyValidation
* Whether or not the password meets the constraint in the plugin.
*/
public function validate($password, UserInterface $user);
/**
* Returns a translated string for the constraint title.
*
* @return string
* Title of the constraint.
*/
public function getTitle();
/**
* Returns a translated description for the constraint description.
*
* @return string
* Description of the constraint.
*/
public function getDescription();
/**
* Returns a translated error message for the constraint.
*
* @return string
* Error message if the constraint fails.
*/
public function getErrorMessage();
/**
* Returns a human-readable summary of the constraint.
*
* @return string
* Summary of the constraint behaviors or restriction.
*/
public function getSummary();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
PasswordConstraintInterface:: |
public | function | Returns a translated description for the constraint description. | 1 |
PasswordConstraintInterface:: |
public | function | Returns a translated error message for the constraint. | 1 |
PasswordConstraintInterface:: |
public | function | Returns a human-readable summary of the constraint. | 6 |
PasswordConstraintInterface:: |
public | function | Returns a translated string for the constraint title. | 1 |
PasswordConstraintInterface:: |
public | function | Returns a true/false status if the password meets the constraint. | 6 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |