public function PasswordConstraintBase::getErrorMessage in Password Policy 8.3
Returns a translated error message for the constraint.
Return value
string Error message if the constraint fails.
Overrides PasswordConstraintInterface::getErrorMessage
File
- src/
PasswordConstraintBase.php, line 41
Class
- PasswordConstraintBase
- A base class to define standard operations of a password constraint.
Namespace
Drupal\password_policyCode
public function getErrorMessage() {
return $this->pluginDefinition['errorMessage'];
}