You are here

public function JsCallbackBase::anonymousUserMessage in JS Callback Handler 8.3

Message to show when user is anonymous and callback requires CSRF token.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup

Overrides JsCallbackInterface::anonymousUserMessage

File

src/Plugin/Js/JsCallbackBase.php, line 87

Class

JsCallbackBase
Base JsCallback class.

Namespace

Drupal\js\Plugin\Js

Code

public function anonymousUserMessage() {
  return $this
    ->t('Cannot complete request: requires authentication. Try refreshing this page or logging out and back in again.');
}