You are here

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

Email
Defines a restriction type by email.

Namespace

Drupal\user_restrictions\Plugin\UserRestrictionType

Code

public function getErrorMessage() {
  return $this
    ->t('The email %mail is reserved, and cannot be used.', [
    '%mail' => $this->mail,
  ]);
}