concrete/src/Validation/CSRF/Token.php
public function getErrorMessage()
    {
        $app = Application::getFacadeApplication();
        $request = $app->make(Request::class);
        $ajax = $app->make(Ajax::class);
        if ($ajax->isAjaxRequest($request)) {
            return t("Invalid token. Please reload the page and retry.");
        } else {
            return t("Invalid form token. Please reload this form and submit again.");
        }
    }
public function getErrorMessage()
    {
        $app = Application::getFacadeApplication();
        $request = $app->make(Request::class);
        $ajax = $app->make(Ajax::class);
        if ($ajax->isAjaxRequest($request)) {
            return t("Invalid token. Please reload the page and retry.");
        } else {
            return t("Invalid form token. Please reload this form and submit again.");
        }
    }
public function getErrorMessage ( ) { $ app = Application :: getFacadeApplication ( ) ; $ request = $ app -> make ( Request :: class ) ; $ ajax = $ app -> make ( Ajax :: class ) ; if ( $ ajax -> isAjaxRequest ( $ request ) ) { return t ( "Invalid token. Please reload the page and retry." ) ; } else { return t ( "Invalid form token. Please reload this form and submit again." ) ; } }
Get the error message to be shown to the users when a token is not valid.

@return string
Get the error message to be shown to the users when a token is not valid .