You are here

public function JsCallbackBase::accessDeniedMessage in JS Callback Handler 8.3

Message to show when access to the callback has been denied.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup

Overrides JsCallbackInterface::accessDeniedMessage

File

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

Class

JsCallbackBase
Base JsCallback class.

Namespace

Drupal\js\Plugin\Js

Code

public function accessDeniedMessage() {
  return $this
    ->t('Unauthorized access. If you feel this is in error, please contact the site administrator.');
}