class PasswordConstraint in Password Policy 8.3
Defines a password constraint annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\password_policy\Annotation\PasswordConstraint
Expanded class hierarchy of PasswordConstraint
6 classes are annotated with PasswordConstraint
- CharacterTypes in password_policy_character_types/
src/ Plugin/ PasswordConstraint/ CharacterTypes.php - Enforces a minimum number of character types for passwords.
- ConsecutiveCharacters in password_policy_consecutive/
src/ Plugin/ PasswordConstraint/ ConsecutiveCharacters.php - Enforces a maximum number of consecutive identical characters.
- PasswordCharacter in password_policy_characters/
src/ Plugin/ PasswordConstraint/ PasswordCharacter.php - Enforces a number of a type of character in passwords.
- PasswordHistory in password_policy_history/
src/ Plugin/ PasswordConstraint/ PasswordHistory.php - Enforces a specific character length for passwords.
- PasswordLength in password_policy_length/
src/ Plugin/ PasswordConstraint/ PasswordLength.php - Enforces a specific character length for passwords.
File
- src/
Annotation/ PasswordConstraint.php, line 12
Namespace
Drupal\password_policy\AnnotationView source
class PasswordConstraint extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the constraint type.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $title;
/**
* The description shown to users.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* The error message shown if the constraint fails.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $errorMessage;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PasswordConstraint:: |
public | property | The description shown to users. | |
PasswordConstraint:: |
public | property | The error message shown if the constraint fails. | |
PasswordConstraint:: |
public | property | The plugin ID. | |
PasswordConstraint:: |
public | property | The human-readable name of the constraint type. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |