public function Email::getErrorMessage in User restrictions 8
Get error message displayed to the user.
Return value
string Error message.
Overrides UserRestrictionTypeBase::getErrorMessage
File
- src/
Plugin/ UserRestrictionType/ Email.php, line 41
Class
- Defines a restriction type by email.
Namespace
Drupal\user_restrictions\Plugin\UserRestrictionTypeCode
public function getErrorMessage() {
return $this
->t('The email %mail is reserved, and cannot be used.', [
'%mail' => $this->mail,
]);
}