PasswordConstraint.php in Password Policy 8.3
Namespace
Drupal\password_policy\AnnotationFile
src/Annotation/PasswordConstraint.phpView source
<?php
namespace Drupal\password_policy\Annotation;
use Drupal\Component\Annotation\Plugin;
/**
* Defines a password constraint annotation object.
*
* @Annotation
*/
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;
}
Classes
Name | Description |
---|---|
PasswordConstraint | Defines a password constraint annotation object. |