You are here

public function UserRestrictionTypeBase::getErrorMessage in User restrictions 8

Get error message displayed to the user.

Return value

string Error message.

Overrides UserRestrictionTypeInterface::getErrorMessage

3 methods override UserRestrictionTypeBase::getErrorMessage()
ClientIp::getErrorMessage in src/Plugin/UserRestrictionType/ClientIp.php
Get error message displayed to the user.
Email::getErrorMessage in src/Plugin/UserRestrictionType/Email.php
Get error message displayed to the user.
Name::getErrorMessage in src/Plugin/UserRestrictionType/Name.php
Get error message displayed to the user.

File

src/Plugin/UserRestrictionType/UserRestrictionTypeBase.php, line 141

Class

UserRestrictionTypeBase

Namespace

Drupal\user_restrictions\Plugin\UserRestrictionType

Code

public function getErrorMessage() {
  return $this
    ->t('Using reserved data.');
}