You are here

class PasswordConstraint in Password Policy 8.3

Defines a password constraint annotation object.

Hierarchy

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.

... See full list

File

src/Annotation/PasswordConstraint.php, line 12

Namespace

Drupal\password_policy\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
PasswordConstraint::$description public property The description shown to users.
PasswordConstraint::$errorMessage public property The error message shown if the constraint fails.
PasswordConstraint::$id public property The plugin ID.
PasswordConstraint::$title public property The human-readable name of the constraint type.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2