You are here

public function PasswordConstraintInterface::getErrorMessage in Password Policy 8.3

Returns a translated error message for the constraint.

Return value

string Error message if the constraint fails.

1 method overrides PasswordConstraintInterface::getErrorMessage()
PasswordConstraintBase::getErrorMessage in src/PasswordConstraintBase.php
Returns a translated error message for the constraint.

File

src/PasswordConstraintInterface.php, line 50

Class

PasswordConstraintInterface
An interface to define the expected operations of a password constraint.

Namespace

Drupal\password_policy

Code

public function getErrorMessage();