Contao\Frontend::jumpToOrReload PHP Метод

jumpToOrReload() защищенный Метод

Redirect to a jumpTo page or reload the current page
protected jumpToOrReload ( integer | array $intId, string $strParams = null, string $strForceLang = null )
$intId integer | array
$strParams string
$strForceLang string
    protected function jumpToOrReload($intId, $strParams = null, $strForceLang = null)
    {
        if ($strForceLang !== null) {
            @trigger_error('Using Frontend::jumpToOrReload() with $strForceLang has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
        }
        /** @var PageModel $objPage */
        global $objPage;
        // Always redirect if there are additional arguments (see #5734)
        $blnForceRedirect = $strParams !== null || $strForceLang !== null;
        if (is_array($intId)) {
            if ($intId['id'] != '') {
                if ($intId['id'] != $objPage->id || $blnForceRedirect) {
                    $this->redirect($this->generateFrontendUrl($intId, $strParams, $strForceLang, true));
                }
            }
        } elseif ($intId > 0) {
            if ($intId != $objPage->id || $blnForceRedirect) {
                if (($objNextPage = \PageModel::findPublishedById($intId)) !== null) {
                    $this->redirect($objNextPage->getFrontendUrl($strParams, $strForceLang));
                }
            }
        }
        $this->reload();
    }