You are here

protected function LoginSecurityUserBlockingTest::getDefaultDrupalBlockedUserErrorMessage in Login Security 2.x

Returns the default Drupal Blocked User error message.

1 call to LoginSecurityUserBlockingTest::getDefaultDrupalBlockedUserErrorMessage()
LoginSecurityUserBlockingTest::testDrupalErrorToggle in tests/src/Functional/LoginSecurityUserBlockingTest.php
Test disable core login error toggle.

File

tests/src/Functional/LoginSecurityUserBlockingTest.php, line 68

Class

LoginSecurityUserBlockingTest
Test Login Security's user-blocking restrictions and default messages.

Namespace

Drupal\Tests\login_security\Functional

Code

protected function getDefaultDrupalBlockedUserErrorMessage($user_name) {
  return new FormattableMarkup('The username %name has not been activated or is blocked.', [
    '%name' => $user_name,
  ]);
}